Results 1 to 5 of 5
  1. #1
    Join Date
    May 2005
    Posts
    532
    Plugin Contributions
    0

    Default Facebook Advertising Pixel tracking code.

    Has anyone used the facebook tracking code on zencart Facebook call it pixels. I can see how to get the script code into the header and have pasted this in the file common/html_header.php

    I am unsure about part 2 to the process which is to past the tracking event code on to the specific pages that you wish to track. eg add to cart or conversions. and example that they give would be to use the code fbq('track', 'AddToCart'); to track any adding to the cart that takes place a s a result of the advert.

    I am not sure though i this is all I need enter on the cart page or if I need more script (i.e. the original part of the pixel script that they give you but change the view page part for the add to cart part.

    Has anyone implemented this at all and are they able to enlighten to the exact position and code used for tracking specific events?

    Thank you.

    Regards

    MikeyG

  2. #2
    Join Date
    May 2016
    Location
    Bucharest
    Posts
    48
    Plugin Contributions
    0

    Default Re: Facebook Advertising Pixel tracking code.

    Hi, I've been looking for this answer for a long time, I managed to install the Purchase event. Here's How i did:

    I installed The Base pixel in the html_header.php to track like you did and after that i made o copy of it and pasted in /includes/templates/custom_template/checkout_success (I've created an override folder named checkout_success)

    The only line I changed was fbq('track', 'PageView'); with fbq('track', 'Purchase', {value: '0.00', currency:'RON'});

    It seems to work for me the Purchase Pixel appeared in my FB Ad Account, i made a test order and the conversion showed up.

    Hope it helps, I've searched the whole Internet for a solution.

    <script>
    !function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){n.callMethod?
    n.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!f._fbq)f._fbq=n;
    n.push=n;n.loaded=!0;n.version='2.0';n.queue=[];t=b.createElement(e);t.async=!0;
    t.src=v;s=b.getElementsByTagName(e)[0];s.parentNode.insertBefore(t,s)}(window,
    document,'script','https://connect.facebook.net/en_US/fbevents.js');
    fbq('init', 'your_ID', {
    em: 'insert_email_variable'
    });
    fbq('track', 'Purchase', {value: '0.00', currency:'RON'});
    </script>
    <noscript><img height="1" width="1" style="display:none"
    src="https://www.facebook.com/tr?id=1161150290679753&ev=PageView&noscript=1"
    /></noscript>
    <!-- DO NOT MODIFY -->
    <!-- End Facebook Pixel Code -->

  3. #3
    Join Date
    May 2008
    Posts
    182
    Plugin Contributions
    0

    Default Re: Facebook Advertising Pixel tracking code.

    I have added mine in via Google Tag Manager. (Saves having to mess around with potentially breaking something)
    May be easier in the long run as you can also add/change on the fly.
    Download the Chrome Extension for Facebook Pixel as well as it does help
    www.candlewithcare.co.uk
    Luxury Scented
    Candles at great prices!

  4. #4
    Join Date
    Jan 2007
    Posts
    1,484
    Plugin Contributions
    10

    Default Re: Facebook Advertising Pixel tracking code.

    I believe there is more to it than that if you want to track sales and campaign conversions and sales totals. You need to give it values from the orders, which is pulled from the checkout success page for transaction totals. There are some FAQ pages here regarding tracking pixels that show what variables map to what values you are seeking.

    Zen Cart and it's community are the best!!

  5. #5
    Join Date
    Sep 2017
    Posts
    1
    Plugin Contributions
    0

    Default Re: Facebook Advertising Pixel tracking code.

    I am also using the Facebook Ads Services from Visiblefactors.com and this team is doing great work for my business growth. I get huge visitors from FB ads and most of them convert into my customers. I am so pleased with their work.

 

 

Similar Threads

  1. v139h i wanna install facebook pixel into my website
    By juneloweelyn in forum Basic Configuration
    Replies: 4
    Last Post: 10 Apr 2016, 11:21 AM
  2. v138a Facebook and Twitter tracking code placement
    By 007mcfod in forum General Questions
    Replies: 1
    Last Post: 24 Aug 2014, 01:48 AM
  3. facebook javascript for remarketing pixel
    By juneloweelyn in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 24 Mar 2014, 02:27 AM
  4. v151 Affiliate Pixel Tracking - Commision Junction Tracking
    By penamas in forum General Questions
    Replies: 4
    Last Post: 11 Sep 2013, 04:01 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR