Q: To collect data from two websites with different URLs using a single Google Analytics property, what feature must be set up?
A) Custom Dimensions
B) Cross-domain tracking
C) Event tracking
D) Advanced filters
Correct Answer is B) Cross-domain tracking.
Explanation:
To collect data from two websites with different URLs using a single Google Analytics property, you must set up cross-domain tracking. Cross-domain tracking allows you to track user behavior across multiple domains in a single Google Analytics property, giving you a comprehensive view of your customers’ interactions with your brand.
Here are the steps to set up cross-domain tracking:
- Create a Google Analytics property for each of your websites, if you haven’t already.
- Add the Google Analytics tracking code to each website, ensuring that the same tracking code and property ID are used on both sites.
- Configure cross-domain tracking in your Google Analytics property by adding the following code to the tracking code on both websites:
javascriptCopy codega('create', 'GA_MEASUREMENT_ID', 'auto', {'allowLinker': true});
ga('require', 'linker');
ga('linker:autoLink', ['domain2.com']);
Replace GA_MEASUREMENT_ID
with your Google Analytics property ID and domain2.com
with the second domain you want to track.
- Verify that cross-domain tracking is working by checking the referral information in your Google Analytics reports. If cross-domain tracking is working correctly, you should see referral information from both domains in your reports.
In conclusion, cross-domain tracking allows you to track user behavior across multiple domains and gain a comprehensive understanding of your customers’ interactions with your brand. By setting up cross-domain tracking in Google Analytics, you can gather valuable data from two websites with different URLs using a single property.