Remember that, we are not going to add multiple same analytics tags but multiple different analytics tags. We will be using Google Tag Manager to send data to multiple Google Analytics account from a single page.
Follow the steps below to do this. We are assuming that you already have an existing pageview tag in tag manager.
1). Create Separate Variables for Each Property
By adding multiple analytics codes means, adding multiple Google Analytics Pageview tags in Tag Manager. For this, we will save each property ID in separate variables. To do this navigate to Variables, scroll down and create a custom variable, select the variable type as Constant.
Similarly, create a second variable for the other property and be sure to change the name.
2). Create separate pageview tags
As you know, we create a pageview tag to connect with Google Analytics. If you have a one of your analytics property connected with tag manager, you will have to copy that and change settings.
Open your existing pageview tag and copy it.
3). Change the Pageview Title and Tracking ID
Once you do this, set the trigger to fire on all pages or specific pages according to your plan.
4). Preview & Debug
Now it’s time to preview changes before publishing the tag.
If the tags are successfully firing like above, you can publish the changes. If you like this guide, follow us on Twitter for more like this.