Hello. I have a mobile SDK that I publish in two different versions (iOS and Android). Both outputs come from a single source project, and the differences are managed in the usual ways (conditional text, variables, separate output channels).
I'd like for each to have two separate Google Analyics tracking IDs, but it seems there can be only one ID per project (as opposed to one ID per output). Is there a workaround that I can use so that each output has a separate tracking ID?
If not, any idea what happens if I use a single tracking ID, given that the Google setup assumes ID = URL, and in this case we'd have "ID = URL2 + ID = URL2" ?
Thanks!
Google Analytics in different versions
Moderators: Alexander Halser, Tim Green
Google Analytics in different versions
e
d
============================================
Ed Hawco
d
============================================
Ed Hawco
- Tim Green
- Site Admin
- Posts: 23182
- Joined: Mon Jun 24, 2002 9:11 am
- Location: Bruehl, Germany
- Contact:
Re: Google Analytics in different versions
Hi Ed,
You can use a text variable for the GA account number and thus change it for different builds. In Configuration > Common Properties > Text Variables. For example, you could create a variable called GA_ACCOUNT and enter the account ID for the most frequently used account there. Then instead of entering the account ID in the Google Analytics section you would enter <%GA_ACCOUNT%>.
Then to export a build with a different account number you set up a task in the Publishing Task Manager in which the variable is reset to the ID of the other account.
You can use a text variable for the GA account number and thus change it for different builds. In Configuration > Common Properties > Text Variables. For example, you could create a variable called GA_ACCOUNT and enter the account ID for the most frequently used account there. Then instead of entering the account ID in the Google Analytics section you would enter <%GA_ACCOUNT%>.
Then to export a build with a different account number you set up a task in the Publishing Task Manager in which the variable is reset to the ID of the other account.
Don't do that. Google would definitely penalize you for it, either with a lower ranking or by not tracking at all. My guess is that the second possibility is more likely.If not, any idea what happens if I use a single tracking ID,
Regards,
Tim (EC Software Documentation & User Support)
Private support:
Please do not email or PM me with private support requests -- post to the forum directly.
Tim (EC Software Documentation & User Support)
Private support:
Please do not email or PM me with private support requests -- post to the forum directly.
Re: Google Analytics in different versions
Brilliant! I didn't realize I could use a variable for this. I'm already pretty familiar with using them elsewhere, and I already have the two separate publishing tasks set up, so this will be a snap to implement. Thanks!
e
d
============================================
Ed Hawco
d
============================================
Ed Hawco