I generated the following Google Analytics tracking URL to use in a Facebook ad:


I know the ad is being clicked (Facebook ad manager data) but the referred traffic is not appearing in my site's Google Analytics data. I think it's because Facebook is doing some weird redirect URL modifying.

Any ideas?

  • What do you think Facebook did with the URL? Did you check your own server logs to see what happened with these visitors? Commented Oct 16, 2013 at 2:36

1 Answer 1


Facebook does support using Google Analytics for tracking ads. Their guide (no longer published) suggests that you use the Google Analytics URL builder with the following information:

  • Website URL: Enter the URL of the web page that you’re going to create an ad for.
  • Campaign Source: facebook
  • Campaign Medium: cpc, cpm, ocpm
  • Campaign Term: Type a descriptive term for your target audience
  • Campaign Content: Type the name of the individual ad here.
  • Campaign Name: Type the name of the Facebook ad campaign here

Then you should test your URL by coping it into your browser’s window. It will take you to your landing page. Go to "Google Analytics" -> "Traffic Sources" -> "Sources" -> "Campaign". You should see your click identified with your chosen campaign name.

Given that this is supported by Facebook, it seems unlikely that they are mangling the URLs as you suggest.

Having recently done some of my own advertising on Facebook that I track from Google Analytics, I have discovered that part of the problem is that Facebook sometimes charges you even when not sending users to your website. When Facebook sends a visitor to your website they call it a "website click". The number of website clicks Facebook reports match the number in Google Analytics (within a couple percent) for me.

Facebook also charges you for other clicks for which a visitor never makes it to your website: likes, shares, and comments. Make sure that you are excluding these items when trying to compare Facebook's data to Google Analytics data.

  • Hi Stephen, the URL to that PDF isn't live anymore. Do you have a copy bookmarked elsewhere?
    – Baumr
    Commented May 22, 2020 at 15:20
  • 1
    @Baumr Sorry, no. Even the wayback machine on archive.org doesn't have it. I've edited the answer to remove the broken link. Commented May 22, 2020 at 17:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.