Mobile app version of vmapp.org
Login or Join
Connie744

: How to assign the first user referer (source / medium) to an event with GTM and GA? I'm trying to solve the following issue. I have "submit form" events in GA (google analytics) and the thing

@Connie744

Posted in: #GoogleAnalytics #GoogleTagManager

I'm trying to solve the following issue.

I have "submit form" events in GA (google analytics) and the thing I need to do is to understand what was the first source and medium (from first session) of those events. The main goal is to know what campaigns or sources initiate "submit form" event that happens after a couple of monthes. I use Tag Manager + Universal analytics only so I hope to make implementation through them.

I see next solutions:

Create custom dimension and save first cookie referral. How to do it?
Somehow do it with user ID and Client ID
Somehow do it through ecommerce tracking
It's important that I can't modify html code so we are going to use GTM and GA only. Please assist. Pretty sure that I'm not alone who is struggling with such problem.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Connie744

1 Comments

Sorted by latest first Latest Oldest Best

 

@Mendez628

Try to use a library from sbjs.rocks. It can store source data in cookies and you can use GTM to add the library to your website.

In GTM using first-party cookie variable you can get source data from cookies and use it as a custom dimension or one of event fields.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme