Skip to main content

Questions tagged [google-analytics]

The tag has no usage guidance.

0 votes
1 answer
37 views

Display number of consecutive days a user has been active on the site

To encourage regular use, for logged in users, we'd like to display a line like this on the front end of the site: "Activity streak: 8 days" We'd like it to automatically update based on ...
Jules's user avatar
  • 100
0 votes
0 answers
13 views

Add google analytics tag manually after wordpress update

I am trying to add the google analytics tag manually to my wordpress website but the wordpress portal seems to have changed since the available instructions for this were written. The instructions I ...
user242356's user avatar
0 votes
2 answers
42 views

No Google Analytics code rendered in the header?

I'm using Customizr Wordpress theme. I've pasted Google Analytics code into header.php, right before </head>. However, when I load my web page, there is no Google Analytics code in the header. ...
Danijel's user avatar
  • 155
0 votes
0 answers
32 views

How to track multiple Contact Form 7 forms individually using GTM in GA4?

I am currently working on a project where I need to track multiple Contact Form 7 forms individually on a WordPress website using Google Tag Manager (GTM) and Google Analytics 4 (GA4). I have already ...
Ujjawal Poonia's user avatar
0 votes
0 answers
30 views

Remove old Google Analytics code on a Wordpress install

We have recently started maintaining a website built by another person. We found out that there are two GA codes on the sites. For one of them we have the login credentials. But the other one is a bit ...
Sita Sreeraman's user avatar
0 votes
0 answers
144 views

how does 'init' /'parse_request' hook work for wordpress?

I wanna try to collect statistics for my wordpress website with my own plugin. the information I need is stored in $_SERVER variable. by surfing the Internet, I've two useful hooks to insert my code: ...
Arthur's user avatar
  • 1
0 votes
2 answers
991 views

How can I add a UTM tag with PHP code to pick up the post slug dynamically in the UTM?

The thing I want to do is doable, but I don't know how to do it. Embarrassment moment coming up: I actually did this a few years ago but lost the code and can't find online how it's done. What I want ...
Punct Ulica's user avatar
0 votes
1 answer
42 views

Multiple Google Analytics for Multiple pagepath

I have a landing page with one domain with multiple page path depending on my clients location, Now, I have already setup different GA tracking code and I want to track this way GA Property Code 1 = ...
CelV's user avatar
  • 1
0 votes
1 answer
219 views

Google Tag Manager only load when connected to Admin

I've got this weird problem and I just don't know where to look : I've installed GTM tag on my wordpress site but it seems it's only being loaded when I'm connected as an admin. How I can tell ? In ...
skytorner's user avatar
  • 111
0 votes
0 answers
364 views

Get the link title attribute and send it google analytics as custom label via google tag manager using beehive pro for WordPress

On the WordPress site, I have beehive pro installed, (this question is beyond the support scope) and I'm trying to get all the hyperlink's title attributes and send them to Google analytics as a ...
Andre van Rensburg's user avatar
1 vote
1 answer
1k views

wp_add_inline_script not adding when script_loader_tag filtered

I'm trying to add the new GA4 code to an existing site, and there seems to be some conflict / ordering issue between script_loader_tag filters and wp_add_inline_script. My functions.php looks thusly: ....
philolegein's user avatar
0 votes
1 answer
610 views

dynamic page not displaying correctly when Varnish hosting ignores query string parameters

I have a WP site with managed hosting that uses Varnish. I have a landing page that displays the appropriate images based on a couple arguments passed through the query string. So for example, ...
Daveh0's user avatar
  • 191
0 votes
0 answers
73 views

Google Analytics gtag code messes up woocommerce cart & login

I'm having this issue where this code provided by google analytics gtag, added with either wp_head() or wp_footer() or a GA plugin: <script async src="https://www.googletagmanager.com/gtag/js?...
JoaquinLarra's user avatar
0 votes
0 answers
208 views

Google Analytics - add script to functions.php

I want to connect google analytics to my site. I don't want to do it through the MonsterInsights plug-in. I added this script to functions.php. Will it work? <?php /** * Add functions files * * @...
Szachmat's user avatar
0 votes
0 answers
324 views

How do I export categories, site stats, comments and posts from wordpress to excel

I need to export the posts, categories, the author, the page views and comments from WordPress to excel. This is because I need to analyze the performance of each author and each category based on ...
user8953638's user avatar

15 30 50 per page
1
2 3 4 5
7