Setting Up Google Tag Manager
Creating Your Own GTM Container
To utilize analytics capabilities with the Onebox Ticket Distribution System, you'll need to create and configure your own Google Tag Manager container. This allows you complete control over your analytics implementation.
1. Create a GTM Container
- Go to Google Tag Manager
- Log in with your Google account
- Click on "Create Account"
- Fill in the account details and container information:
- Account Name: Your organization name
- Container Name: Onebox Ticketing
- Container Type: Web
- Click "Create" and accept the Terms of Service
2. Configure Container in Onebox
Once you have created your GTM container, you may need to contact your Customer Success Manager to configure it in the Onebox platform, depending on your account permissions.
- Log in to your Onebox administration panel
- Navigate to Channels > Configurations > External Tools
- Look for the "Google Tag Manager" section
- Enter your GTM Container ID (format: GTM-XXXXXXX)
- Save your changes
3. Verify Implementation
To ensure your GTM container is correctly implemented:
- Install the Google Tag Assistant Chrome extension
- Visit your ticketing website
- Open Tag Assistant and verify that your GTM container is being detected
Mapping events in GTM Container
To properly integrate Google Analytics 4 (GA4) with your GTM container, you'll need to map the events that Onebox sends to your datalayer
.
Here's how to set up a basic event mapping.
1. Set Up GA4 Configuration Tag
- In your GTM container, go to Tags > New
- Click on Tag Configuration and select Google Analytics: GA4 Configuration
- Configure the tag:
- Measurement ID: Enter your GA4 Measurement ID (format: G-XXXXXXXX)
- Event Parameters: Add any default parameters you want to track
- Set trigger to All Pages
- Name it "GA4 Configuration" and save
2. Create GA4 Event Tag
- Go to Tags > New
- Click on Tag Configuration and select Google Analytics: GA4 Event
- Configure the event tag:
- Configuration Tag: Select your "GA4 Configuration" tag
- Event Name: Use the Onebox event name (e.g.,
view_item
,add_to_cart
) - Event Parameters: Map the data layer variables
- Remember to enable ecommerce mapping and filter out all vrs_ prefixed events
- Configure trigger based on datalayer events.
Review Recommended GA4 events and Onebox Datalayer Events
Best Practices
- Create separate GTM workspaces for development and production environments
- Use GTM's preview mode to test tags before publishing
- Document your tag implementation for future reference
- Regularly audit your tags to ensure they're capturing the correct data
Next Steps
- Set up any additional third-party analytics tools you use
- Create custom events specific to your business needs
Support
If you encounter any issues during setup, please contact your Onebox support representative for assistance.