Questions tagged [custom-variables]

16 questions
8
votes
1 answer

Rewrite up to three folders into three query string parameters to a PHP script

I'd like to use mod_rewrite within the .htaccess file to rewrite folders to a var string. Below is examples of current and what I would prefer. Current URL: example.com/main/folder1/folder2/folder3 Preferred URL:…
exarhis
  • 103
  • 1
  • 1
  • 7
4
votes
1 answer

Will session level custom variables allow Google Analytics to report on more data than page level variables?

We run a radio station site with 5 markets. The value of the market is saved as a cookie and last week I started tracking the value of that cookie in a page-level custom variable. The problem is that when reporting on the page views of this custom…
Christian
  • 233
  • 1
  • 10
2
votes
1 answer

Pass date variable to Google Analytics / Tag Manager?

I have a WordPress site with a blog, and want to simplify the process of tracking the most visited posts that were published in a given month. While it's of course easy to find the most visited blog posts in Google Analytics for a given period of…
2
votes
1 answer

Htaccess RewriteCond based on environment variable

I find apache very unfriendly. Anyway. I have this: RewriteRule (.*) - [QSA,E=DOMAIN_NAME:localhost.com] This doesn't redirect, which is fine: RewriteCond "www.%{ENV:DOMAIN_NAME}" "!=www.localhost.com" RewriteRule ^…
Andrei
  • 137
  • 1
  • 6
2
votes
0 answers

Affiliate Custom Campaign Parameters reports in Google Analytics

I am using an affiliate software which automatically passes custom parameters for all affiliate traffic. This custom parameter variable name doesn't match with standard Google campaign parameters. So my final URL is something like…
1
vote
1 answer

Session Level Custom Dimension in Google Analytics Is Not Set for All Pageviews

I'm using a session custom dimension to distinguish between two variants of my site. I'm setting this dimension to 'A' or 'B' for ALL visits before I track the first pageview. My problem is that when I look at the number of pageviews in the report I…
1
vote
0 answers

Track user through Google Universal Analytics

I want to track a user from my site, give an id to Google Analytics and later be able to see which pages that id visited and for how long did that id view the pages. I've tried custom variables with the classic analytics. I tried enabling the…
raygo
  • 153
  • 1
  • 7
1
vote
3 answers

Delete unknown and undesired custom variables

I'm creating a custom report in Google Analytics because I have implemented the typical custom variable to track logged/anonymous users. To do it I choose the "unique table" type, 2 dimensions values (custom variable key and value) and visits…
1
vote
0 answers

view_item Event variable data return "undefined"

I created trigger to fire when the view_item event occurs by using a custom event and setting the "Event" equals "view_item". in preview mode when I check the view_item event, the built-in dataLayer.push is showing the item name. I created a…
Jason
  • 111
  • 3
1
vote
0 answers

Passing parameters to conditional statements in HTML5

I want a link to say Broadcast (Online) when someone is online, and Broadcast (Offline) when someone isn't. I know I can write an if statement, but how do I pass the parameter that someone is online to the website?
Sidereal
  • 111
  • 1
1
vote
1 answer

Capturing a variable from a clicked link or url using php

I've build a php page called pageById.php that pulls in and displays data from a MySQL database, but the query is 'static'. $sql = "SELECT * FROM table WHERE id = 879"; I want to change this so it uses a variable in-place of 879. $sql = "SELECT *…
Mr. B
  • 187
  • 5
1
vote
1 answer

Google Analytics Custom Metric counts more than once on a unique membership page. How can I fix it?

On Google Analytics I have this metric called Yeni Uyelik which counts new memberships. I expect this metric to count 1 for every unique page. However, in the report on some pages it counts up to 10 and GA reports show more memberships than…
Cansu
  • 155
  • 8
0
votes
1 answer

Google Analytics - Problem with custom variable - Data look not precise

I use a custom variable to store the username of who is visiting my site. So I access the custom variable report to list all the values of a custom variable, and have a look at the whole list of users. I would expect a list of 30 users, while the…
0
votes
2 answers

Avoiding Personally Identifiable Information in Custom Variables in Google Analytics

We are currently logging the type of user via custom variables. The types are to do with the level of service they have - gold, silver or bronze or just a regular non-logged in user. Ideally what we would like to do is to log which users are logging…
joesk
  • 801
  • 4
  • 11
0
votes
1 answer

How can we pass custom variables in Google Analytics

I have a task of getting username, company and other desired data in a Google Analytics report. I want to know how I can get them in report. I tried this: How can I find the IP address for my visitors in Google Analytics Universal reports? but I…
1
2