Announcement

Collapse
No announcement yet.

Global tag vs conversion goal tag

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Global tag vs conversion goal tag

    Some advice is needed about Facebook advertising tag placement. Facebook has you putting a FB pixel on every page using javascript and toward that end it should go into the Global Head Tag Content. They also have a conversion code, an event that tracks purchases, that you're supposed to put between the head tag of the INVC page. How can you accomplish both since the global one will also appear in the INVC? A conditional statement is suggested like:

    <mvt:if expr="g.Screen EQ 'INVC'">
    // Invoice Code Goes Here
    </mvt:if>

    The pixel code itself is easy to implement but any suggestions on how to write the conditional statement for a conversion event using Miva code? Facebook gives this example:


    fbcode.JPG


    In other words how can you accomplish having the base code on all pages other than the INVC page, and, have the Purchase event only on the INVC page? Thanks.

    Barry

    #2
    The screen code conditional would be correct, though I would recommend l.settings:page:code vs. g.Screen to prevent the potential for duplicate conversions being tracked under certain circumstances. If you are implementing the full Pixel/Custom Audience tag, you will have a number of conditionals checking for particular screen codes, altering the snippet for that page type accordingly. Our internal base code for this service is approximately 92 lines and performs a minimum of 8 screen and action checks depending on the setup/needs of the particular store.

    Comment


      #3
      How did you handle setting up the content_ids parameter on the BASK and INVC pages? I assume the ids would have to be listed in a foreach statement?

      Dan, do you guys offer setting up the Facebook Pixel as a service?
      Jamin Jones, CEO
      the Appalachian Offroad Motorcycle Company

      Comment


        #4
        Dan, do you guys offer setting up the Facebook Pixel as a service?
        We do, feel free to reach out to us.

        Comment

        Working...
        X