You have no items in your shopping cart.

Thursday, December 26, 2024 12:37:43 PM

Extra tokens

Posted: 7 years ago

#6615 Quote

arronhayre

Posted: 7 years ago

#6615 Quote
Hi,

Im currently using your tracking code manager plugin however i require a few more tokens, if that is possible?
Would it be possible to add the following tokens?

Product name
Category name
All product ids instead of the first

Many thanks,
Arron

Posted: 7 years ago

#6616 Quote

Support

Posted: 7 years ago

#6616 Quote
Send me example and I'll try to add your request.
But send me URL for official documentation.
Some tracking services allow to add new custom tokens some not.
I am interestion to do plugin more user-friendly.

Posted: 7 years ago

#6626 Quote

arronhayre

Posted: 7 years ago

#6626 Quote
For example in your plugin currently i can do:

fbq('init', '%MerchantId%');
fbq('track', 'Purchase',{
orderId: '%OrderId%',
customeremail: '%CustomerEmail%',
currency: '%Currency%',
value: '%OrderTotal%',
productid: '%ProductId%',
quantity: '%Quantity%'

I would like to add two more tokens which would be:
name: '%ProductName%',
category: '%Category%'


This has been done in this plugin before: https://www.nopcommerce.com/p/2095/facebook-pixel-conversion-tracker.aspx however it is out of date and does not support 3.8/3.9 NopCommerce.

Here is the official facebook pixel documentation which shows this: https://developers.facebook.com/docs/marketing-api/audiences-api/pixel/#reportingevents

Thanks.

Posted: 7 years ago

#6639 Quote

Support

Posted: 7 years ago

#6639 Quote
I read Facebook documentation again.
Our plugin has ALL necessary parameters for Facebook Pixel and Facebook ADS.
I can add new tokens but you can have warnings in Facebook admin panel.

Do you mean pixel  'Purchase'?

What we see in example from Facebook

fbq('track', 'Purchase', {
    content_type: 'product',
    contents: [
      {
        'id': '1234',
        'quantity': 2,
        'item_price': 10.00
      },
      {
        'id': '4642',
        'quantity': 1,
        'item_price': 5.00
      }
    ],
    value: 25.00,
    currency: 'USD'
});


My plugin has the same code.

About
name: '%ProductName%',
category: '%Category%'

I tried to find name and category in this documentation
https://developers.facebook.com/docs/marketing-api/audiences-api/pixel/#reportingevents

Maybe these new parameters are additional customer data

Read documentation

Add Advanced Matching
You can send additional customer data through the pixel and match more website actions with people on Facebook.


What Facebook Pixel (Purchase, etc.) do you use and what additional customer data do you want to send?
Show me example.
I am sorry I don't have free time to install another plugins and analyze it.
I want to help you but I want to understand what I must do.

Posted: 7 years ago

#6642 Quote

arronhayre

Posted: 7 years ago

#6642 Quote
Yes I do mean the pixel purchase event.
You can see here in the documentation https://developers.facebook.com/docs/ads-for-websites/pixel-events/v2.10#doublewhammy they have:


fbq('track', 'Purchase', {
  content_name: 'Really Fast Running Shoes',
  content_category: 'Apparel & Accessories > Shoes',
  content_ids: ['1234'],
  content_type: 'product',
  value: 199.50,
  currency: 'USD'
});


The two tokens i would like added are:

   content_name: 'Really Fast Running Shoes',
   content_category: 'Apparel & Accessories > Shoes',


Thanks

Posted: 7 years ago

#6644 Quote

Support

Posted: 7 years ago

#6644 Quote
Ok.
If the customer purchases one product I'll add new tokens. Thank you.
I'll do it now.

Posted: 7 years ago

#6646 Quote

Support

Posted: 7 years ago

#6646 Quote
I have done it.
Download new release and write me about result.

Version 1.12 - October 11, 2017

+ changed Facebook Pixel for 'Purchase' track.

for one product

fbq('track', 'Purchase', { 
content_name: 'Custom T-Shirt',
content_category: 'Apparel >> Clothing',
contents: [
{ 'id': '29', 'quantity': 2, 'item_price': 15.00 }
],
content_type: 'product',
value: 30.00,
currency: 'USD'
});


for several products

fbq('track', 'Purchase', { 
contents: [
{ 'id': '29', 'quantity': 2, 'item_price': 15.00 },
{ 'id': '30', 'quantity': 1, 'item_price': 43.50 },
{ 'id': '25', 'quantity': 1, 'item_price': 27.56 }
],
content_type: 'product',
value: 114.39,
currency: 'USD'
});

Posted: 7 years ago

#6647 Quote

arronhayre

Posted: 7 years ago

#6647 Quote
Perfect.

Is it possible to bring out the product name and category for multiple products too?

Thanks

Posted: 7 years ago

#6648 Quote

Support

Posted: 7 years ago

#6648 Quote
Yes, but why?

Facebook gave us example for one product and for several products.

Posted: 7 years ago

#6649 Quote

arronhayre

Posted: 7 years ago

#6649 Quote
So we can correctly track conversions within facebook pixel tracking manager.
It would really help us.

Many thanks for your help so far.

Posted: 7 years ago

#6650 Quote

Support

Powered by nopCommerce

Copyright © 2023 FoxNetSoft. All rights reserved