Installation and configuring plug-in Tracking Code Manager

1. How to add your own custom tracking code
2. How to add Facebook Pixel
3. How to add AdWords Remarketing Tag (Google Dynamic Remarketing)
4. List of available tokens


1. How to add your own custom tracking code

You can set the place and page for your own tracking code. You can use tokens for sending information about customer activity. Press the button 'Add new' and select 'Custom' from the list. Provide the name of this tracking code. If you need to use unique ID for your tracking service you can provide it in the filed 'MerchantId'. Press the Save button.

On the next page you can set JavaScript code and set the place and page.


2. How to add Facebook Pixel

Plugin adds tracking code to ALL nessesary pages (ex. product, category, manufacturer, vendor pages, customer registration page, cart page, wishlist page, search page, order complited page, home page, article, blog and news pages, etc.).

Plugin adds new custom tracking code 'ViewCategory' for advanced custom activity too. You can read about custom tracking code on this page https://developers.facebook.com/docs/marketing-api/dynamic-product-ads/product-audiences/v2.9

Press the button 'Add new' and select 'Facebook Pixel' from the list. Provide the name of this tracking code and set your Facebook Pixel ID in the filed 'MerchantId'. Press the Save button.

You can select the product ID value from the list if you use another value.

If you need to change the source code of JavaScript you can check 'HideTrackingScript' and change it. You will see tokes for this JavaScript code too.

That's all!! You can opent product and category pages, cart page and check tracking code.

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'
});


3. How to add AdWords Remarketing Tag (Google Dynamic Remarketing)

Plugin adds tracking code to product, category, manufacturer, vendor pages, cart page, wishlist page, search page, order complited page, home page, article, blog and news pages. Press the button 'Add new' and select 'Google Dynamic Remarketing' from the list. Provide the name of this tracking code and set your AdWord campaign ID in the filed 'MerchantId'. Press the Save button.

You can select the product ID value from the list if you use another value.

If you need to change the source code of JavaScript you can check 'HideTrackingScript' and change it. You will see tokes for this JavaScript code too.

That's all!! You can opent product's page and cart page and check tracking code.


4. List of available tokens.

If you plan you use your own tracking script plugin supports several own tokens. These tokens help you to pass parameters in tracking service.

%MerchantId% - MerchantId
%OrderTotal% - Order Total
%OrderId% - Order ID
%UniqueUserId% Unique user id
%CustomerEmail% - buyer email address
%ProductId% - the first product ID from the order or ID of the product on product page
%Quantity% - quantity for the first product from the order
%Currency% - currency code from the order
%PageType% - type of pages, ex. cart, wishlist, search, product, category, manufacturer, vendor, ordercompleted, homepage, completeregistration, initiatecheckout, news, blog, article, anotherpage, etc.
%Facebook.Pixel% - Special token for Facebook Pixel
%GoogleDynamicRemarketing% - Special token for Google Dynamic Remarketing

This tokens are case-sensitive.
if you need to add new tokens write us too.