Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Help needed with Google Analytics Custom Variables...

Featured Replies

Hi All,

 

I've been asked to set-up some custom variables but as I'm new to it, have no idea on how to get started. I have researched as much as I can but am getting confused.

 

Here's what I need to do:

An app generates a unique URL in the form of http://www.example.com/credit-use-confirm/?userID=12345&BookTitle=ABCDE&DateAndTime=201208080800. I then need the custom variables from the URL ('UserID',

'BookTitle' and 'DateAndTime') to be passed to Google Analytics so I can track which users of the app are visiting the page at that URL.

I've looked into setting up custom variables but don't understand if I need 3 separate lines of code for the 3 separate variables nor how I can pass the various elements of the URL through to these.

Can anyone shed any light on how I might go about doing this?

Many thanks for any help in advance.

-Jack

  • Author

Never mind. It turns out this kind of usage is against Google Analytics' TOS.

Going about it a different way by asking the user for some info up-front instead.

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.