Highlighted

Google Analytics (analytics.js) transport beacon not working

Bronze Contributor
Bronze Contributor

Hello,

I am trying to set the transport method to beacon. I am using the field available in the Vendor Configuration.

However, when I publish the changes and run some tests looking at the Google Analytics Request URL in the Network tab I still see that the Request Method is GET when the beacon method should turn the call into a POST request. So that I am afraid that the configuration is not working properly for me.

Any ideas on how to turn transport beacon correctly?

Thanks in advance.

2 REPLIES 2
Highlighted

Google Analytics (analytics.js) transport beacon not working

Tealium Employee

Hi Daniel! 

I took a look at the tag template and it appears the transport type is only set for events - meaning that you need to pass an "event category" and an "event action" for the transport type to be recognized.

If you need it to send for page views (where the "event category" and "event action" are not present), then the tag template will need to be updated to pass that information when a page view is passed. If you need assistance with this, I would suggest submitting a support request so that one of our Solutions Engineers can set up the required code in the template for you.

Thanks,

Jen

Highlighted

Google Analytics (analytics.js) transport beacon not working

Bronze Contributor
Bronze Contributor

Thanks Jennifer. 

Unfortunately, it's still not working for me. I have Extensions scoped to GA with the "event category" and an "event action" set but still I don't get transport to be "beacon". I would like to point out that I don't need this feature for pageviews but events only.

I also tried mapping the transport field using and UDO variable that is set to "beacon" in the GA events extensions but I did not get results either.