@dortha
To track "open new tab" traffic in Google Analytics, you can use a combination of techniques:
- Event Tracking: Implement an event tracking code to capture when users open a new tab. You can do this by adding the following JavaScript code to the link or button that triggers the new tab:
Open in New TabIn this code, you need to replace "example.com" with the actual link, while "open-new-tab" is the event category, "click" is the event action, and "external-link" is the event label. You can customize these parameters to match your needs.
- Linker Parameters: To maintain session continuity between the current tab and the newly opened tab, you can append linker parameters to your URLs. This will allow Google Analytics to recognize the same user across multiple tabs. To enable this, you need to modify your URLs as follows:
Open in New TabHere, you can replace "utm_source," "utm_medium," "utm_campaign," and "gclid" with the appropriate parameters you are using for campaign tracking.
Once you have implemented these changes, you can view the data in Google Analytics by going to Behavior > Events > Top Events. There, you should be able to see the "open-new-tab" event category and track the associated metrics.