All Questions
Tagged with php google-analytics
22 questions
1
vote
1
answer
165
views
Using Google Analytics on a Javascript widget
I've built Javascript widgets that have been installed on other websites.
How can I use google analytics on my widgets like I would use analytics on a web page to track the traffic?
FYI, the ...
1
vote
1
answer
34
views
Google Analytics: Universal Analytics Behavioural Flow not populating
GA: UA behavioural flow worked perfectly (I think, I am getting confused on all the different implementations) when I added this snippet of code to my app.component of my Angular 10 project:
...
2
votes
1
answer
184
views
Can I use Google Analytics on URL shortener redirects powered by PHP?
I have a short URL website like Bitly which currently redirect users with PHP from my site to a site of their choice. I want to add Google Analytics to the redirect pages but I am stuck on the problem ...
0
votes
0
answers
249
views
How to track internal redirect urls on Google Analytics User Explorer?
In our wp site the external urls replaced with internal links and when someone clicks on them they go to redirected external url, but those are not logged by google analytics user explorer. How to ...
3
votes
1
answer
925
views
Can't find the IP address of regular visitor which creates %100 Bounce Rate on my site!
Everyday :(, the following user creates one hit on my google analytics which has 3-5 sessions and %100 bounce rate.
ISP: Digital Ocean
Operating System: Linux
City: san francisco
I want to block ...
1
vote
0
answers
110
views
Google Analytics PHP API Getting fullReferrer
I want to get fullReferrer using Google Analytics API with PHP.
And I tried as follows:
return $analytics->data_ga->get('ga:' . $profileId,
'7daysAgo',
...
4
votes
1
answer
574
views
Google Analytics not same with my database records
I got a website which will track all the post's visitor view and store each of them in a table with IP address, referrer website and user agent. But I found that in one day I got 100+ rows (pageviews) ...
1
vote
2
answers
79
views
Why does Google Analytics report that I have traffic at a calculator.php URL for my blog?
I frequently see this URL having traffic via Google Analytics although I don't have any page and with that strucuter either.
URL - techanger.com/calculator.php?get=windows-8-1-download-link-product-...
1
vote
1
answer
4k
views
How to read user unique code from _ga cookie?
Currently I am facing the problem that have been discussed already here: How to keep track of a unique and an existing visitor (keep track about unique user without registration etc.). The most ...
2
votes
1
answer
169
views
How to get multiple form field values in Google Analytics site search report?
I'm wondering how I can get multiple form field values into Google Site Search. For instance, I have a search form that has a drop down for year, make and model.
Once submitted I would like those ...
3
votes
2
answers
464
views
"PHP" is showing up in Browser + OS list in Google Analytics report
PHP is listed as a browser in Google Analytics. 50 sessions have been created.
Obviously Analytics data is collected via Javascript executed in the visitor's browser so what is PHP (a server-side ...
2
votes
1
answer
159
views
How Google ads add a pageview?
I'm having a trouble on my site. I have my own script which counts how many times the ads display in a page using PHP script, which always run every page refresh without any condition and it sums up ...
1
vote
1
answer
845
views
Use a GET variable to see a referrer in Google Analytics
I have a system on my site that sends an email to a customer with a certain url in it (not a private url, just the info they've requested). The format of this url is just straight on:
http://www....
1
vote
1
answer
83
views
I have multiple versions of the same landing page. How can I tell Google Analytics which is being viewed?
I'm sending a link to a landing page to a number of different companies and need to be able to tell Google Analytics which company is viewing the page and when. I of course have my original link to ...
1
vote
1
answer
470
views
Google Analytics data Missing for 4 days
I used wrong tracking id in my E-commerce tracking code for Google analytics and missed the data for few days.
To add that missing data in my account I have written a short script which manually send ...
1
vote
1
answer
299
views
How to Trigger GA Event for Every Single Pageview (of a certain type)
Thanks, edited my question.
I need a reliable way to capture a GA event whenever the GA tracking code fires for a particular page only. Doing so because we want to assign a dollar value to simply ...
2
votes
0
answers
503
views
GAPI output doesn't match Google Analytics website
I have to get the main info about my Google Analytics Goals.
I'm using GAPI lib, with this code:
<?php
require_once 'conf.inc';
require_once 'gapi.class.php';
$ga = new gapi(ga_email,ga_password)...
4
votes
1
answer
5k
views
Google Analytics API - Super simple? [closed]
Google Analytics API - Too complicated?
I've read about Google Analytics API but heard of others that it is a bit complicated to make it work. I use PHP.
Copy / paste example
My question is if ...
0
votes
2
answers
859
views
What is easy to integrate statistics script?
I develop a website on that people can create their own subpages with some tools i provide. And i would like to add the ability for users to see statistics without setting them on their own (like with ...
1
vote
2
answers
3k
views
How to correctly count pageviews?
I've been using a free 3rd party sitestats counter for years, and I would like to get rid of the external party.
For this simple thing I'm only interested in pageviews (other stats I use google ...
0
votes
1
answer
77
views
Retrieving Monthly Hits From Google Analytics
What I want to do is grab the last 5 months including the current months hits for that month.
I have only just copied the tracking code and plugged it into my site but after that I'm not sure what to ...
2
votes
1
answer
64
views
Google Analytic's and Universal PHP Footers
If I have a universal Footer, include('footer.php'); on my page - will the google analytic's script I just put there be able to track my page views?