Skip to main content
Question

Cross Domain Tracking with GTM and Flutter + UTM data

  • 22 April 2024
  • 1 reply
  • 103 views

Hi all, 

We have installed Amplitude on our Webflow website example.com via GTM. 
We have installed Amplitude on our Flutter web-app App.example.com via the Flutter SDK. 

The get UTM info, our dev team added the UTM tracking option to the Javascript script in the index.html file. They enabled the following options:

  • includeFbclid
  • includeGclid
  • includeReferrer
  • includeUtm

We can verify the UTM $identify event is now being fired.

 

One important reason for us to use Amplitude is the ability to track visitors & users across our website and web-app. 

Example scenario: a visitor visits Example.com and clicks the button "Start for Free". This brings them to the web-app App.example.com where they create an account and start using our app. 

At the moment, the website and web-app return very different IDs for the same person on the website vs. web-app. 

 

From documentation & other community posts, I learned that when we pass the device_id when people click from our website example.com to our web app app.example.com, Amplitude will be able to link the 2 together. Even though they can't log in to our website; next time they will visit our website carv.com they will be recognized as the same user_id based on the Amplitude device_id.

Question 1. Is that correct? 

We managed to get the default events in Amplitude via the GTM Amplitude template. They don't seem to include UTM info. I read this community post (https://community.amplitude.com/data-instrumentation-57/properties-in-gtm-vs-properties-in-amplitude-2250?tid=2250&fid=57) 

Question 2. Is it correct that we also need to add "identify" and "track" calls to get the UTM data in Amplitude?

Any help is greatly appreciated, thank you! 

Michiel 

1 reply

Badge

Hi @sydney.koh and @Saish Redkar 
Sorry to bring you for this topic.

I’m in the same challenges and would like to have your advice how we can improve this.

  1. How can we manage to a single user when accessing from example.com to app.example.com. Currently example.com uses GTM SDK while app.example.com use Flutter SDK and each of them create own device id, so that it became two users.
  2. How can GTM collect UTMs as user property?
  3. Additionally, if users comes to app.example.com directly, can Flutter SDK capture UTMs as user property?

Looking forward to hearing from you.

 

Cheers,

Jooho

Reply