Google Analytics: Avoid Pageview Hit on event

Mediascale
Visitor
Mediascale

Hello Community

We are implementing Google Analytics for audience reporting. We'd like to send specific event and custom dimensions when conditions are true. But the website has 2 tag manager (GTM & Tealium) along each other.

While the 1st one sends standard data to GA (pageview), I'd like to send Event data without making any pageview hit. 

I've browse through the forum and did not find a clear answer.

Thank you very much for your help. 

J

2 REPLIES 2

Google Analytics: Avoid Pageview Hit on event

PatrickHegnauer
Frequent Visitor
PatrickHegnauer

Hi @Mediascale

If you are using Google Analytics, you have to specify Event Category and Event Action to fire an event call. As soon as these two variables are set and mapped in the tag, an event call should be sent (without a pageview).

Hope that helps

Patrick

Google Analytics: Avoid Pageview Hit on event

Mediascale
Visitor
Mediascale

Hey Patrick

How are you doing ? 

thank you for your answer. 

Indeed, It make sense to only fire the events using the Google Analytics Tags. However, by default the tag is firing by default. Looking at the Developper pages, I saw that if you use GTAG, you are able to deactivate the pageview once the gtag.js library is called. (resources)

You need to make a custom destination with config to reproduce this call

gtag('config', 'GA_TRACKING_ID', { 'send_page_view': false });

Which results in doing this: 

Screenshot at Jan 09 17-54-12.png

It solved my problem Smiley Happy

Thank you very much for your input. 

Have a nice day

J