Is there a pattern to the Tracking Id that could be used for validation?[ Edited ]
October 2016 - last edited October 2016
My question: Is there a pattern to the Tracking ID's we could use to validate that the user has entered a well formed Tracking ID? Will it always be UA-########-# where # is a digit from 0-9?
Is there a pattern to the Tracking Id that could be used for validation?
Short answer is yes, you can create a place inside of your platform for users to place their analytics code. Countless companies do this and each implements its different. Personally I would recommend that you include code to make sure the UA ID is properly inserted. Also keep in mind there are many variations to the UA ID such as display remarketing, user ID, etc that require code modification so you may want to include such options.
The best place to get started is probably here: https://developers.google.com/analytics/
Hope this helps!
Was my response helpful? If yes, please mark it as the ‘Best Answer.’