I recently struggled with implementing Adwords conversion tracking in a responsible, privacy-focused way. I didn't want all my users exposed to trackers so this is the story of how I approached it. 1/12https://www.valcanbuild.tech/conditional-adwords-tracking/ …
The easiest way to do that was to just add a ?ref parameter to the ad, since Google are totally OK with you doing that. utm_source would have also worked here. 7/12pic.twitter.com/VrHyL9LNp5
-
-
It was really easy for me to conditonally add the tracker only if the ref contained the word "Google". I include this in both my landing and conversion pages. Laravel blade syntax below
8/12pic.twitter.com/JntNeNmHNv
Pokaż ten wątek -
Then I had to make sure to pass this ref to my conversion action page. I do that by passing the ref in the <a> tag. Here is an image that shows how the whole thing works. 9/12pic.twitter.com/cZWF70Wl8H
Pokaż ten wątek -
The final step was to actually attribute the Thankbox creation. That was as simple as just checking if gtag (Google Tag Manager) exists and calling it once the form is submitted. 10/12pic.twitter.com/E9tOG8FCsk
Pokaż ten wątek -
That's it! With some extra thought and a little bit of extra effort I was able to keep tracker scripts from taking over my whole website. I've contained them just to the places I need them. There's also an added bonus with that
11/12Pokaż ten wątek -
It means that I only have to show a cookie notice to those tracked users, not everyone.
@usefathom, my analytics solution of choice is GDPR-friendly and doesn't require a cookie prompt. Can highly recommend them.
https://usefathom.com/ref/WRPOFE
12/12Pokaż ten wątek
Koniec rozmowy
Nowa rozmowa -
Wydaje się, że ładowanie zajmuje dużo czasu.
Twitter jest przeciążony lub wystąpił chwilowy problem. Spróbuj ponownie lub sprawdź status Twittera, aby uzyskać więcej informacji.
That's when a lightbulb turned on.
I realized that the most responsible thing to do in this case would be to *only track users who arrive from Adwords.*
Only those people would get the script included.
6/12