Questions tagged [google-analytics]
Use it for questions about Google Analytics integration with Drupal website.
119
questions
0
votes
1
answer
55
views
Updated Google Analytics breaks website
I uninstalled the Google Analytics module and installed a newer version for Drupal 8. Now the website crashes with this exception error.
Uncaught PHP Exception Symfony\Component\Routing\Exception\...
0
votes
0
answers
21
views
How to add a relationship in google analytics reports views?
So I created a custom module and added a .inc file. Inside that file I've defined a hook_views_data() in which I have defined content entity relationship so that it supports GA reports.
Code in .inc ...
0
votes
0
answers
27
views
Is there any way to show the data fields from content and google analytics reports in view page?
I want to create a view page where I can show/add the fields of content (title, author, content type, etc) and also the fields of google analytics reports api (event name, total views, users, etc.) I ...
0
votes
1
answer
22
views
Getting error while importing the fields in Google Analytics Reports module
I have installed Google Analytics Reports module latest version, enabled the GA reports data API and created a service account credentials on developer console. Then I have downloaded the json file of ...
0
votes
0
answers
91
views
How can I fire a Google analytics tag event on every form post?
I want to see statistics for forms submissions, grouped by type of forms. I am using Google Analytics 4 (https://www.drupal.org/docs/contributed-modules/google-analytics/using-google-analytics-4x). I ...
0
votes
1
answer
121
views
Can you use Google Analytics module with UA-xxx-xx along with GTM tracking code?
If we have Google Analytics module set up with a UA id and also wish to do some custom click tracking set up with GTM.
For one, is using both codes allowed or should be done? (UA-xxxx via Google ...
0
votes
0
answers
41
views
Make gtm.js load on start, without any cookie
I use this module and I cannot make it to load from the start gtm.js, without any cookie. If I don't load gtm.js from start, the whole Google Ads and Analitycs becomes useless. If I load gtm.js with ...
0
votes
1
answer
173
views
What is the right way to implement google_analytics with the eu_cookie_compliance and categories?
I'm having difficulty configuring eu_cookie_compliance with multiple categories on a website with Google Analytics tracking. The GA tracking depends on selection of one of the categories.
When the ...
0
votes
1
answer
131
views
Where to view Google Analytics "Track clicks on outbound links" results?
I am using Drupal's Google Analytics module 8.x-2.5. The module configuration has a check box for "Track clicks on outbound links", which I checked since the module was installed. However, I ...
0
votes
1
answer
74
views
I cannot update because of Ubercart and Google Analytics module error
I tried updating my Google Analytics module today, but when I went to the update.php page I got this error:
Unresolved dependency. Google Analytics (Version !=7.x-2.4 required)
Google Analytics for ...
1
vote
0
answers
76
views
How to show the scroll percentage of the Scroll Depth Analytics module [closed]
I have installed & configured the Scroll Depth Analytics module on my website. I get the output as shown in below image:
I want to get the page title in the event label field so that I can see ...
0
votes
0
answers
61
views
Drupal Content type Booking Page
Currently, I have a single booking page (Booking content type) in Drupal. For example www.xyz.com/booking and booking page itself is handling error and confirmation page and falls on same URL www.xyz....
0
votes
1
answer
295
views
How to anonymize IP logging by google analytics?
I'm trying to achieve the implementation of:
gtag('config', 'UA-xxxxxxx-x');
to
gtag('config', 'UA-xxxxxxx-x', { 'anonymize_ip': true });
How to do this in D7?
I tried to add it to advance ...
0
votes
1
answer
346
views
How to remove Site Name from page title
I'm using Omega 7.3x to theme my site, and at current, all the page headers are
[Page Title] | [Site Name]
but I'm trying to bring back google analytics reports into the site so the admin can see a ...
0
votes
1
answer
246
views
Visitor Counter
Is there a way of finding out the number visitors of a drupal website, where they go to and where they are from. Google Analytics come to mind (or if any other module can do a better job).
0
votes
1
answer
598
views
How to change the page path being reported to Google Analytics as a pageview
I would like a certain page path to be reported as a different page path, IF it has a hash on it.
/page-name#hash-name
should be reported as
/page-name/hash-name
Thing is that with the Google ...
2
votes
1
answer
89
views
How to configure Views to determine pages never visited by anonymous users? [closed]
I want to find out and list the pages that never get visited by anonymous users. Google Analytics just shows pages that are visited at least once.
How can I configure views to create a kind of flag ...
-2
votes
2
answers
1k
views
How do I add UTM sources to RSS links?
I want to add UTM sources to RSS links. I have already tried to change the link display and modify the URL, but so far I am unable to see any sort of tracking in Google Analytics.
0
votes
1
answer
140
views
How can my JavaScript-function access the Web Property ID from the Google Analytics module?
I use the GoogleAnalytics module in most of my projects and have often the same issue:
Due to my countries policy requirements, every user has to be able to deactivate google-analytics cookies. To do ...
1
vote
0
answers
60
views
Add Tracking Code in Gmap view ?
I have a view white a gmap and foreach Marker a link with tel number.
And I want add tracking code on this link.
I add class on my link like this:
<div class="gmap-popup">
<h3>Marker ...
1
vote
1
answer
440
views
How to get Google Analytics to track progress through a multi-page Drupal Webform?
I've got a couple of complex multipage webforms, and want to track progress through these forms so that I can how much time users are spending on each page, and whether there are particular pages that ...
1
vote
1
answer
531
views
What is causing duplicate google analytics?
I am currently using google analytics module in drupal however when i check With Tag assist extension is shows that i am making two calls to google analytics using the same analytics key. I check my ...
0
votes
1
answer
2k
views
Google Analytics Reports: how to remove pageviews for Top Pages and add published date
I've installed google analytics reports to be able to see the most viewed nodes of my website. I were able to add the Top Pages view to my home page but i wanted to know how can i :
add published ...
1
vote
0
answers
39
views
How to add a javascript snippet to track a 2nd Google Analytics account? [duplicate]
In my settings for Google Analytics I need to add a javascript snippet in the "after" section, to track a second account (the main account works fine).
I added this:
ga("create", "UA-xxxxxxxx-x", ...
1
vote
1
answer
481
views
Downloading, and loading Google analytics script locally and daily with Drupal Cron
I'm using Drupal Google Analytics module for some time; It works perfectly and gives me the data I need.
Yet, since instilling it, I get the following notification on Google Pagespeed Insights:
Do ...
0
votes
1
answer
538
views
How to put google analytics script PHP to my sites?
I apply a Google analytics service. I got a code.
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new ...
0
votes
1
answer
41
views
Does Boost work together with Google analytics?
This may be a stupid question, but can the Google Analytic module still track users and count page visits etc. if I use Boost module to speed my site up?
Is there anything I should be aware of? Are ...
0
votes
1
answer
282
views
Why does the Google Analytics module restrict uid?
When I try to insert the [current-user:uid] token for a custom dimension in the Google Analytics module, it gives me an error that this is a forbidden item.
However, reading through the GA Terms of ...
0
votes
1
answer
139
views
What is the best way to track unique and overall clicks at my newsletters
I send newsletters from my Drupal-7 website and I want to track how many times the links where clicked and how many unique click events I had.
I use Simplenews module and I use some basic GA utm ...
1
vote
2
answers
987
views
How to add two separate GA accounts in one Drupal site
I have one Drupal site and I am using google analytic module for add ing GA account? Now client want to add two separate accounts.
UA-87XXX-XX
UA-87YYY-YY
How can I add these two accounts?
1
vote
0
answers
20
views
Google Analtics drupal [closed]
I am having multiple reports in google analytic. I have setup the configuration so that i receive the PDF for all the report in one email.My requirement is that i need all the reports in one PDF .Is ...
0
votes
1
answer
275
views
Track Simplenews newsletter open per user
I send newsletters from my Drupal 7 site, using the Simplenews module. I'm using this tracking code, but it isn't tracking uniqueness:
<img src="http://www.google-analytics.com/collect?v=1&...
1
vote
1
answer
43
views
Send 'compare product' action to Google Analytics
I am having a products page in my site. In that I have a comparison functionality.
Now I want to send data to google analytics so that Admin can later on check which products were compared. I have ...
1
vote
0
answers
283
views
Track Sessions with Product Views
Commerce Google Tag Manager module provides following rule actions:
Send "Add to Cart" event to google analytics via GTM
Send "Remove from Cart" event to google analytics via GTM
Send "Checkout" ...
-1
votes
1
answer
142
views
How can I see anonymous visitors in real time Google Analytics? [closed]
I can't see anonymous visitors in real-time in Google Analytics, I can only see
registered users. But I need see all visitors in Real-time>Overview , including anonymous visitors.
In the Google ...
2
votes
1
answer
2k
views
How to collect and display visit statistics for a Views page?
I wonder if someone can point me in the right direction for the following:
I'd like to collect and display statistics for a Views page.
I wonder what's the best approach for collecting basic 'hit' ...
0
votes
1
answer
225
views
Drupal add google analytics event tracking query strings to url
I have Drupal 7 site for sending the newsletter. I am using simplenews module for sending newsletter. I want to add google analytics tracking query strings to all links in the newsletter so that it is ...
1
vote
0
answers
40
views
Google analytics profile not retrieved to my site
I'm using google analytics counter. I have Google analytics account and created OAuth2 credentials. My site got authenticated to Google analytics API after adding credentials to my site. But no Google ...
1
vote
0
answers
219
views
Google PageSpeed Insight problem with linkid.js
I spent weeks with optimising my site. One anoying problem has left:
http://www.google-analytics.com/plugins/ua/linkid.js (60 min) how can I change the browser caching period or caching this file ...
1
vote
1
answer
183
views
adding adwords tracking to a Click instead of a page load using goog_report_conversion
I am using the simple subscription module to subscribe users to a newsletter and wish to track clicks of subscribers. Is there an easy way to call the goog_report_conversion() function when someone ...
0
votes
0
answers
63
views
Is there a way to add JS to a page node Head tag directly from the page editor?
I am using Google Experiments for split testing and I need a different script for each page.
Adding a different script per page can be tedious if there is no way to add the script from the page ...
0
votes
1
answer
285
views
Hook on product page view in Drupal commerce
I want to run page view event from tracking with Google Analytics/piwik on Drupal commerce using my own Module.
Which hook can i use in Drupal commerce to run my own code? I just need to find the ...
1
vote
1
answer
66
views
How do I get the Google Analytics module settings to show up? I am unable to configure
I have installed the Google Analytics module and enabled it. But I am unable to configure the settings for it.
More specifically when I click on the configuration gear it just brings me to Home/...
4
votes
1
answer
670
views
Commerce Analytics not working
On my website we don't get any e-commerce tracking in Google Analytics. Usual analytics works fine. How do I troubleshoot?
Have sold around 200 products since installing & configuring the Google ...
0
votes
1
answer
154
views
Can't use Google Analytics Statistics Module - Impossible to login
I'm trying to use Google Analytics Statistics module but it won't accept my login credentials. I know they're correct because I tried them independently multiple times on the same browser to login to ...
1
vote
0
answers
116
views
Google tag manager, no element id
There is Google tag manager (GTM) on the site I am working on but when we inspect the navigation with the GTM there is no element id. At this point i don't know where to begin. Do i rework the GTM in ...
1
vote
1
answer
1k
views
Integrating Video.js with Google Analytics
I'm wondering if anybody has gotten the Video.js module/library to play nicely with Google Analytics? I'm trying to do some integration via this plugin (https://github.com/mickey/videojs-ga), but am ...
1
vote
0
answers
29
views
fuzzysearch and google analytics
I am using fuzzysearch module on Drupal 6, and his integration with Google Analytics. Regular google analytics query is working if I put query such search/node.
I've tried query like fuzzysearch/...
0
votes
1
answer
73
views
Google Analytics Reports with Background Process module (non-blocking http request)
Using Google Analytics Reports module latest version 7.x-3.0-beta2. I wanted to make this module to make requests in non-blocking fashion. Standard drupal makes it blocking fashion, which slows things ...
0
votes
1
answer
297
views
Google Analytics Events Tracking Module not working out of the box [closed]
I was super excited to learn about the google_analytics_et module. I downloaded it and then uploaded to my staging site and enabled the modules like that mentioned. I then clicked around and notice ...