Avatar of Rick Mellon
Rick MellonFlag for United States of America

asked on 

Looking for help adding a timestamp custom dimension to Google Analytics.

I have a several microsites in need of customized Google Analytics. Specifically, I want to add a timestamp custom dimension to page views and events.

I've managed to add a timestamp javascript to one of the sites. It appears on the GA dashboard but isn't collecting data. I'm looking for someone to help fix this, and then possibly discuss using a Google API to create a third-party dashboard for clients who can't access GA because Gmail is blocked by their firewall.  

GoogleAnalyticsJavaScript

Avatar of undefined
Last Comment
David H.H.Lee
Avatar of David H.H.Lee
David H.H.Lee
Flag of Malaysia image

I've managed to add a timestamp javascript to one of the sites. It appears on the GA dashboard but isn't collecting data.  
Since it already viewable in GA dashboard, it should working fine. Can you share with us what you mean by "isn't collecting data"?

You can add the GA custom dimension for timestamp via javascript or Google Tag Manager(GTM).
If the connecting isn’t working, make sure you have disable any kind of adblockers like AdBlock or Ghostery before check again your GA result.

Cross-check the steps if anything misses out in your configuration:
https://sandervolbeda.com/add-timestamp-to-google-analytics/
Avatar of Rick Mellon
Rick Mellon
Flag of United States of America image

ASKER

Thank you, David.

When I view the standard Page View report, it shows activity. But when I select the Timestamp custom dimension, all values in the page view table are cleared and replace with a single row of zeroes.

I had followed the video which was at the bottom of the article you shared, but I had not completed the steps related to this: 
  1. Check: Enable overriding settings in this tag

So I checked that box, entered the Universal Analytics tracking ID, and hope that fixes the issue.

Unfortunately, the Tag Manager Preview says that it detects a legacy js tag for the site I'm monitoring. I'm not sure why, since it seems to be current, but I can't get beyond that message in Preview to see anything else. I'll check Google Analytics tomorrow to see if data is now being displayed with Timestamp.

--Rick 
Avatar of David H.H.Lee
David H.H.Lee
Flag of Malaysia image

Unfortunately, the Tag Manager Preview says that it detects a legacy js tag for the site I'm monitoring. I'm not sure why, since it seems to be current, but I can't get beyond that message in Preview to see anything else. I'll check Google Analytics tomorrow to see if data is now being displayed with Timestamp. 
Well noted. Awaiting your good news and please share with us if you need any further assistance for this topic.
Avatar of Rick Mellon
Rick Mellon
Flag of United States of America image

ASKER

David, I'm making some progress by starting fresh with another microsite. A couple of quick questions.

Would you verify that the Google Analytics tracking ID in step 3.3 from https://sandervolbeda.com/add-timestamp-to-google-analytics/ below should be the UA ID?

3.2 Check: Enable overriding settings in this tag
3.3 Add the Google Analytics tracking ID manually

Also, I'd like to verify that only the ID should be entered. If I click on the camera icon, it brings up a list of Variables that can be added.

The reason I ask is, there is no "Variables" tab in the GA Tag Assistant for Universal Analytics, just "Hits Sent" "Data Layer" and "Errors".

"Variables" does appear if the GTM ID is selected, and it shows the Timestamp variable – but "Return Type" and "Value" are both "undefined" – I assume because I've entered the UA ID in step 3.3 above.


ASKER CERTIFIED SOLUTION
Avatar of David H.H.Lee
David H.H.Lee
Flag of Malaysia image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
JavaScript
JavaScript

JavaScript is a dynamic, object-based language commonly used for client-side scripting in web browsers. Recently, server side JavaScript frameworks have also emerged. JavaScript runs on nearly every operating system and in almost every mainstream web browser.

127K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo