#1
  1. A Change of Season
    Devshed Expert (3500 - 3999 posts)

    Join Date
    Mar 2004
    Location
    Next Door
    Posts
    3,545
    Rep Power
    221

    How Can I Use Facebook Pixel When I am Sending The Traffic To Another Site?


    Hello;

    Facebook has this super cool retargeting feature where we pixel the audience at different steps and run dynamic marketing with them.

    For example, they want us to place some code in all pages (classic JS) and each individual page gets its own tracking pixel.

    That way we can tell which page has the prospect checked.

    It's all good working fine, however, I wanna send traffic to the affiliate site. I don't have control over affiliate pages.

    So how do you recommend I do this and dynamcially pixel the bastards?

    Code:
    <!-- Facebook Pixel Code -->
    <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', '****');
      fbq('track', 'PageView');
    </script>
    <noscript><img height="1" width="1" style="display:none"
      src="https://www.facebook.com/tr?id=****&ev=PageView&noscript=1"
    /></noscript>
    <!-- End Facebook Pixel Code -->
    EVENT CODES:

    PURCHASE
    Code:
    <script>
      fbq('track', 'Purchase');
    </script>
    ADD TO BASKET

    Code:
    <script>
      fbq('track', 'AddToCart');
    </script>

    Etc etc
  2. #2
  3. Impoverished Moderator
    Devshed Supreme Being (6500+ posts)

    Join Date
    Mar 2007
    Location
    Washington, USA
    Posts
    16,816
    Rep Power
    9646
    Obviously you cannot "pixel" someone else's site. You should be able to use Javascript to track the link click and fire off an AJAX request that logs it happening (including where to), but the most reliable method would be to have an interstitial redirect page.
  4. #3
  5. A Change of Season
    Devshed Expert (3500 - 3999 posts)

    Join Date
    Mar 2004
    Location
    Next Door
    Posts
    3,545
    Rep Power
    221
    Originally Posted by requinix
    Obviously you cannot "pixel" someone else's site. You should be able to use Javascript to track the link click and fire off an AJAX request that logs it happening (including where to), but the most reliable method would be to have an interstitial redirect page.
    Ok, I am not 100% sure what you mean.

    Is this what you mean?

    I want them to go to vendort_site.com/affiliate_id

    So I can send them to my_site.com/redirect and on this page, I add the FB JS code, plus php redirect with some delay so there is time for JS to load?

    Then how do I check the sales?

    Thanks
  6. #4
  7. A Change of Season
    Devshed Expert (3500 - 3999 posts)

    Join Date
    Mar 2004
    Location
    Next Door
    Posts
    3,545
    Rep Power
    221
    I found this.

    Job done I guess.
    Last edited by English Breakfast Tea; January 15th, 2018 at 10:34 PM.
  8. #5
  9. A Change of Season
    Devshed Expert (3500 - 3999 posts)

    Join Date
    Mar 2004
    Location
    Next Door
    Posts
    3,545
    Rep Power
    221
    Except not sure how to test.

    In CB I've got it set up. But in FB nothing changed yet.
  10. #6
  11. Impoverished Moderator
    Devshed Supreme Being (6500+ posts)

    Join Date
    Mar 2007
    Location
    Washington, USA
    Posts
    16,816
    Rep Power
    9646
    The new Facebook Pixel and related details are displayed in the Integrated Sales Report grid on the My Site Page. Newly created Facebook Pixels are inactive.
    Emphasis added. Relevant?

IMN logo majestic logo threadwatch logo seochat tools logo