Skip to main content

All Questions

3 votes
2 answers
112 views

Setting up user id in Google analytics with Google tag (gtag.js)

I have a user set up as follows with Google tag, gtag.js: <!-- Google tag (gtag.js) --> <script async src='https://www.googletagmanager.com/gtag/js?id=G-Lxxxxxxx'></script> <...
peter's user avatar
  • 337
0 votes
0 answers
26 views

gtag is not sending custom event when redirecting to external page

I want to track when user clicks on the button which redirect to external page. Implementation: gtag("event", name, { event_callback: () => onLinkOpen ? onLinkOpen(link) : window....
drent's user avatar
  • 124
0 votes
0 answers
40 views

Classic ASP & Google Analytic : How do I set up the tracking properties for my website

I'm maintaining a classic asp website and I'm trying to implement Google Analytic on one of the pages. And I have 2 types of javascript codes, which I used inside my classic asp. With [Code 1], ...
Punreach Rany's user avatar
1 vote
2 answers
58 views

Load GA4 script from specific component in angular

I am working with angular v12 to build a web page that will be user with different clients, and i can tell the difference between clients based on a query param (realm) which is unique per client, and ...
Kardon63's user avatar
  • 346
0 votes
0 answers
43 views

INVALID_ARGUMENT in Google Analytics

Unable to retrieve event parameters associated with events. I am integrating Google Analytics into my website and trying to fetch events using the Analytics Data API. However, the parameters I sent ...
Maaz Ahmed's user avatar
0 votes
1 answer
122 views

How to send custom data in google analytics default GA4 events

I am using Google analytics in my angular project. Initially I simply added the google analytics reference in my index.html and was collecting the default event data like page_view. Recently I started ...
Severus's user avatar
  • 71
0 votes
0 answers
169 views

How to send Google Analytics 4 e-commerce events using @next/third-parties/google package and sendGTMEvent function in Next.js?

We have a Next.js app that uses Pages Router. For the purposes of analytics, we implemented GA4 via GTM. This works fine for basic (and enhanced) tracking, but we need to send specific e-commerce ...
Radan Jovic's user avatar
0 votes
0 answers
32 views

How to listen to Enhanced Measurement events from js?

I want to pass Enhanced Measurement events from Google Analytics through an iframe. Specifically I want to capture events, such as form_start and form_submit, etc and then send them to the parent ...
Mark's user avatar
  • 11
0 votes
1 answer
329 views

Hashing with sha256 when sending user_data to GA4, Google ads, etc

tl;dr: Should there be a sha256_ prefix to city, regon, postal code, country, and should I hash them or not? ---- details I am wondering wether google doesn't consider city, region and postal code a ...
Marin HTML's user avatar
1 vote
1 answer
158 views

How can i calculate the average of a custom event value on GA4?

i have login time for multiple users and i want to show the average, min and max of the login time. how can i do that on GA4 ? following is my code: gtag('event', 'login_time', { event_category: '...
Hammad's user avatar
  • 53
0 votes
1 answer
168 views

Reducing blocking time of GTag script

If you can recognise this: <script src="https://www.googletagmanager.com/gtag/js?id=G-TOKENIDHERE"></script> It is a heavy file for the first second and so it matters. What I ...
SKB_BGPL's user avatar
  • 143
0 votes
0 answers
210 views

Sending custom event to GA4 via GTM without listing all its attributes

I want to track custom events in GA4 via GTM. I have setup a GA4 custom event tags which works fine. See screenshot below for example, it's not 100% correct to be working as described here but it's ...
Link14's user avatar
  • 946
0 votes
1 answer
209 views

Trying to understanding advanced Google Tag Manager setup with custom tags and variables

I'm a marketing professional who has been doing basic tagging and analytics for clients. I've encountered an account set up by someone with extensive development/analytics knowledge, and I'm ...
Sophie's user avatar
  • 1
0 votes
0 answers
72 views

JavaScript: Firebase Analytics don't log my events in console

I'm newbie to Firebase Analytics Web implementation. But here's my code: <!doctype html> <html lang="en"> <head> <meta charset="utf-8" /> <meta ...
Ali's user avatar
  • 1,472
0 votes
1 answer
109 views

Google Analytics from a third party script

I am developing a widget that can be added to a host website via snippet of js code that once rendered will add an iframe to the host website. Now my customers want to give me their GA tracking id so ...
Michael's user avatar
  • 23k

15 30 50 per page
1
2 3 4 5
256