I have added a tag that fires when my custom event “GAEvent” shows and reads the specified data layer variables. But when looking through the debugger it seems that onward the user journey it will continue to fire the tag when loading new pages. And the tag fires for multiple events; both page views, custom events and multiple heartbeat pings.
In the attached picture, it is just for one users journey, but will the DLV variables (educations, faculty and studentYear) count 8 times for this specific user?
I just want it to fire once per user (session) but there isn’t multiplicity for data layer events, so i hope i can get a little clarification here.
I made a tag that collects the custom dimensions i specified; DLV - studentYear, DLV - faculty and DLV - educations. And for the trigger i set it to trigger when it sees the data layer event “GAEvent”.
But after taking a second look at custom dimensions, would i resolve the problem by using sessions dimensions rather than event dimensions? With the session dimension it add information about the session which is what i’m after?
Hi. Yes, that also solves your problem. Once the event is sent, a session-scoped dimension is set and it should be all fine. Going for session scope makes it also easier to use those values to do segmentation of data.
Yes, it’s correct, as it’s stored in the session scope. Session can last many hours, but it expires after 30 mins of inactivity (which means that no events have been sent for the last 30 mins). It cannot be adjusted at the moment.
Those values are stored in session scope as well, so generally yes. For instance, you should be able to get the no. of unique visitors that had a certain value set for given custom dimension.
Is it possible to sort by cookie ID or make a report where that is possible? Or even other information from _pk_id cookie? I want to be able to distinguish already known/returning visitors i know have triggered the data layer variables from those who haven’t.
This way, to be able to have a report i for certain know are know visitors and another report where i don’t know if it is the same visitor who have triggered the data layer variables one or multiple times.
Cookie ID can be used in reporting as any other dimension. You can also create a segment which is checking if the custom dimension is set / not set. With segment applied, you can even browse a full session log to see for instance why the variables have not been triggered.