I am trying to seperate different type of traffic for my website based on domain name.
For seperating based on domain name I am trying to use react google tag manager. I added react gtm code in app.js as follows:-
import TagManager from 'react-gtm-module'
const tagManagerArgs = {
gtmId: 'GTM-000000'
}
TagManager.initialize(tagManagerArgs)
...
const app = document.getElementById('app')
ReactDOM.render(<Router routes={routes} />, app)
This works and I am able to see page view event in tag assistant.
The part where I need help is that I don’t understand how to differentiate between 2 page view events – one arising from external and other from internal users.I am planning sepearte them based on domain names . If any one has any idea reagarding this can you please guide me?