|
This article covers the following: |
Overview
Google Tag Manager is a tag management system where you can centralize all your tags that can be used to track and analyze several parameters on your website, including conversion rates, visitor behavior, and the like. It also provides the ability to update and customize the tags to suit your requirements - all of this can be performed using the UI without depending on a coder.
Integrating GTM with your Wingify account allows you to send Wingify campaign and survey data to GTM for further processing and analysis.
Create a GTM Connection in Wingify
Wingify supports the following GTM connection types:
- Send campaign data to Google Tag Manager (GTM) (Push-based): Sends Wingify campaign and variation data to GTM for tracking and analysis.
- Send survey data to Google Tag Manager (GTM) (Survey data): Sends Wingify survey response data to GTM for analysis and reporting.
- Event mappings for Google Tag Manager (GTM) Data Layer (Event mappings): Captures transaction and custom events from your GTM data layer and records them in Wingify.
To create a GTM connection in your Wingify account:
- Log in to your Wingify account.
- From the left panel, navigate to Profile > Configurations > Integrations.
- Click the Google Tag Manager (GTM) integration tile, then click Create Connection.
- Select the connection type you want to configure.
- Enter a name in the Connection Name field (for example, GTM Connector).
- Click Create Connection.
All configured connections appear under the Active Connections section on the GTM integration page.
Note:
- To set a connection as your default, go to the Configurations tab and under Active Connections, enable the Default toggle for the desired connection. Wingify automatically selects this connection for all new campaigns. Existing campaigns remain unaffected. If no default connection is set, you must manually select the appropriate connection for each new campaign.
- Default toggle is only available for Push-based and Survey data connections.
To enable the push-based or survey data integration at the campaign level:
- Navigate to Web Experimentation.
- Select the desired campaign, and go to Configuration > Integrations.
- Select Google Tag Manager (GTM) from the list of available integrations.
Capture Events from the GTM Data Layer Using Event Mapping
With an Event mapping connection, Wingify reads your GTM data layer and records the events you choose so that you can use them in metrics and reports.
The following table summarizes the two mapping types and when to use each
| Event mapping type | Use it to |
| Transaction event mapping | Track revenue conversions, such as purchases. You map the keys in your data layer to transaction details like transaction ID, revenue, tax, and shipping. |
| Custom event mapping | Trigger a Wingify custom event when conditions you define on data layer values are met. |
Unlike the Push-based and Survey data connections, which send Wingify data to GTM, event mapping fetches events from your GTM data layer into Wingify. Event mapping is also different from visitor targeting, which uses data layer values to decide who sees a campaign. For targeting, see Target Visitors Based on GTM Data Layer.
To add or view event mappings for a connection, go to Profile > Integrations > Google Tag Manager (GTM). Under the Event mappings for Google Tag Manager (GTM) Data Layer table, click Add Event mappings to add a mapping. To view existing mappings, click the number of event mappings.
For step-by-step instructions on setting up transaction and custom event mappings, see Capture Transaction Events from the GTM Data Layer.
Target Visitors Based on the GTM Data Layer
By integrating GTM with your Wingify account, you will also be able to target the visitors in your Wingify campaigns based on any GTM Data Layer variable/event. You can create a simple targeting condition by specifying one of the GTM Data Layer variables/events or combine multiple data layer variables/events to create a complex condition. To use a GTM Data Layer variable/event as a targeting condition, perform the following steps:
- Log in to your Wingify account.
- Using the Experimentation > Web Experimentation section, create a test campaign.
- Go to Configuration > Targeting > Segments > Custom Segment.
- Create a segment using the GTM Data Layer condition.
- To add multiple conditions, click Add condition. Also, you can define the logical relationship between the different conditions using the and/or operators and use brackets to organize the segment condition.
- Once done, click Save Segment.
Now, Wingify can target the visitors who qualify for the condition specified for the GTM Data Layer variable/event.
Need more help?
For more information or further assistance, contact Wingify Support.