Track FB Ads in GA with URL Dynamic Parameters

Comments:19

  1. Hi,

    So I’ve switched over some of the tracking for one of the campaigns we have running for a client on Facebook, and the information in GA is now sprayed across several source/medium variations.

    The URL parameters field reads:

    utm_source={{site_source_name}}&utm_medium=cpc&utm_campaign={{campaign.name}}&utm_content={{placement}}

    And some of the various source/medium values in GA are:

    – fb / cpc
    – ig / cpc
    – {{site_source_name}} / cpc
    – {{site_source_name}} / (not set)
    – {{ / (not set)

    What the hell?! The article seems to suggest that all of the values should be dynamically-generated without any issues. Is Facebook’s ability to dynamically-generate these UTM parameters not as robust as we thought or did I do something wrong?

    Would appreciate any sort of response/input on this. Thought this would simplify things, not complicate them.

    1. fb/cpc and ig/cpc seem legitimate; it’s showing you that your ads appeared on both Facebook (fb) and Instagram (ig). You can check what ad platforms you’re setting ads on under the Placements section in FB Ads Manager.

      {{site_source_name}} does seem to be an issue on FB’s end, where it doesn’t always reliably recognize that field as a variable. I noticed it as well during my own tests, but it wasn’t a major issue for me since it only affected a few visits on the first day of advertising, and every one of those visits came from Facebook itself (I checked the IP addresses). So my theory is that FB’s bots visit the links immediately after you set up an ad, and their bots don’t properly convert the dynamic variable into the marketing source. In any case, I didn’t see these messed up parameters after the first day — are you seeing it ongoing? And does the traffic look like bot traffic (1 page session, 100% bounce rate)?

  2. Hi, I used these display parameters for the first time myself. I dont see any mistakes in the way I have entered the UTMs. But I am seeing a similar issue as reported here – values in GA comes as {{campaign.name}} or {{adset.name}} or {{ad.name}} rather than the actual campaign, ad set or ad name. Any help here would be appreciated.

    1. It has been 6 hours since i did this and the bounce rate is around 45% with 2-3 pages/ session.. so these dont seem like facebook bots too.

      1. Thanks for the note. If possible, would you mind returning with an update if the issue persists after the first day? And does ALL your FB ad traffic show those messed up parameters, or is some coming through correctly? At this point it’s just looking like an error on FB’s side but more info will help other people know what to expect.

    2. Hi Ana,
      I’m getting the same error where {{campaign.name}} is showing as Campaign name in GA. This is even after we used FB pixel to fire on ‘Window Loaded’ in GTM. Any help with this? Thx.

      1. This article is about adding UTM tracking for GA, which is unrelated to the FB pixel, so it won’t make any difference whether you set the FB Pixel to “Window Loaded” or not. The issue you’re having seems to be an issue with the dynamic parameters — it seems FB may not be supporting them anymore.

  3. Issue still persists on day 2 – bounce rate is around 35% so again these are not bots. ALL FB traffic where we used display parameters is coming through like this

    1. Got it, thanks for the update. And I just noticed myself that Facebook’s documentation I linked in the post has been totally changed; it used to list out all the available dynamic URL parameters, but there’s now no mention of them at all. That doesn’t seem good… I’ll run some tests and update this post with any findings.

  4. Thanks Ana. Very helpful. In fact, that’s what i was wondering too – on the FB help centre, the documentation currently only talks about hardcoding the actual parameters, rather than using dynamic parameters. This might be because there are issues with dynamic URL parameters

  5. This no longer works, could you please update the article to reflect that? Very confusing for people who don’t reach the comment section.

    1. The very first paragraph of this article reads “May 2018 Update: It looks like this feature has been (temporarily?) disabled by Facebook, at least for some accounts. There’s discussion online about it not working anymore, and information on these dynamic parameters has been edited out from the official documentation. The original article is still presented below for reference, but please proceed with caution.” Did you not see that, or do you mean it’s not clear enough?

  6. yeah, looks like dynamic variables were eliminated after the last ads update to audiences. Perhaps related.

Leave a Reply

Your email address will not be published.