Integrations
The mParticle integration with Google Marketing Platform allows you to forward event data to the following Google marketing and advertising tools:
mParticle utilizes Google Floodlight to forward and map your event data to Google Marketing Platform. Google Floodlight is a conversion tracking system that allows you to generate and manage tags. These tags track activities (also referred to as “conversions”) that can represent any action your users take, including interacting with an advertisement, installing an app, completing a purchase, or signing up for a newsletter.
Because all products in the Google Marketing Platform (including Display & Video 360, Campaign Manager 360, and Search Ads 360) can use Floodlight, the mParticle integration works by mapping mParticle events to Floodlight activity tags.
Make sure you have access to the following:
Before starting the integration setup, complete the following:
If you are forwarding event data collected from mParticle’s Web SDK, you must specify the counting method for each event that you want to forward to Google. To specify the counting method for an event in the Web SDK, create a custom flag with the attribute DoubleClick.Counter
set to one of the following possible counting methods:
standard
unique
per_session
transactions
items_sold
You can then pass this custom flag along with the event when calling the tracking method in your website’s code. For example:
var customFlags = {'DoubleClick.Counter': 'standard'};
mParticle.logEvent('Video Watched', customFlags);
There are two stages to setting up the mParticle event integration with Google Marketing Platform.
Search for “Google Marketing Platform”, hover your cursor over the Google Marketing Platform tile, and click Setup.
Check the box labeled Event, and click Configure.
Click Save & Open in Connections.
Select a configured inputs to connect to Google Marketing Platform.
Click Connect Output, and click Google Marketing Platform from the list of outputs. Select the configuration you just created from the Configuration Name dropdown menu, and click Next.
Add an install
event mapping.
install
events or one for a custom event. To map an install
event from mParticle to a Google Floodlight activity, enter the group tag and activity tag (joined with a semicolon ;
) that you have configured in Floodlight to track “install” events. For example: conversion_group;install
.
Add a Custom Event mapping.
;
for the floodlight event.
Add a Custom Variable mapping.
Under Consent Data Mapping, map the consent purposes you have defined in mParticle to Google’s consent purpose definitions.
Set the default consent status for Ad User Data Consent.
Set the default value for Ad Personalization Consent.
Set the default value for Ad Storage Consent.
Set the default value for Analytics storage Consent.
Google Marketing Platform, which uses Google’s gtag
, has added the following specific Consent Mode parameters that must be sent via a gtag
implementation:
ad_user_data
ad_personalization
ad_storage
analytics_storage
For Google Marketing Platform, the ad_personalization
consent type is mapped to Google Marketing Platform’s non-personalized ads (or NPA) consent type such that if ad_personalization
consent is set as GRANTED
, NPA will be set to 0 (which indicates the user consented to ad personalization) and vice versa.
To configure user-specified consent forwarding, you must map any consent purposes you have defined in mParticle to Google’s consent mode parameters. To learn more about defining and managing consent purposes within mParticle’s platform, see Data Privacy Controls.
Once you have defined one or more consent purposes in mParticle’s Data Privacy Controls, you can use those purposes to record your users’ preferences in events they trigger. These user-provided consents are what must be mapped to Google’s consent mode parameters in step 2.7 when creating a connection with Google Marketing Platform.
In the absence of user-defined consent values for the ad_user_data
, ad_personalization
, ad_storage
, and analytics_storage
fields, an optional, default value can be configured for each consent type. When no user consent is provided, the default status is used, if specified. If omitted, the Unspecified
status will be sent.
application initialized
, with isFirstRun
set to true
.qty
and cost
variables. However, individual attributes of products cannot be forwarded.For every event forwarded to the Google Marketing Platform, the following event attributes must be included:
Device Advertising ID
Data is forwarded to the Google Marketing Platform events integration in real time, as it is ingested into mParticle.
Before activating your new connection, or when troubleshooting issues, please check the following:
Have you entered each required ID, token, and event mapping correctly?
While mParticle forwards data to integrations in real-time, there may be a 24-48 hour delay before forwarded data is viewable in your Google Marketing Platform tools.
You can read more about data latency in Google’s documentation.
Setting Name | Data Type | Default Value | Description |
---|---|---|---|
Advertiser ID | string |
Advertiser ID associated with your Floodlight activity | |
Authorization Token | string |
An advertiser-specific alphanumeric string in your DDM account |
Setting Name | Data Type | Default Value | Platform | Description |
---|---|---|---|---|
Install Event Mapping | string |
All | The corresponding group tag and activity tag strings set up in Floodlight for install event, separated by ’;’, e.g., ‘install;conversion_group’ | |
Custom Event Mapping | Custom Field |
All | Pick events and enter the corresponding group tag and activity tag strings set up in Floodlight, separated by ’;’, e.g., you may pick event name ‘Login’, and enter ‘login;conversion_group’ | |
Custom Variable Mapping | Custom Field |
All | The Group Tag String is also found as the value of ‘type=’ and the Activity Tag String found as the value of ‘cat=’ in a generated Floodlight tag snippet. | |
Custom Variable Mapping | Custom Field |
All | Allows you to map your mParticle event attributes and user attributes to the corresponding custom variable setup in Floodlight. On web, given the kit component of the integration, any mParticle events not mapped to GMP variables will cause Floodlight to populate an alert in the console: Event not mapped. Event not sent. | |
Apply EU Regulation | bool |
false | All | If enabled, the integration will be considered as European regulations do apply to these users and conversions. |
Consent Data Mapping | mapping |
null | All | A mapping of mParticle consents to Google Ads consents. |
Ad User Data Default Consent Value | string |
Unspecified |
All | The default consent value to forward for the Ad User Data field. |
Ad Personalization Default Consent Value | string |
Unspecified |
All | The default consent value to forward for the Ad Personalization field. |
Ad Storage Default Consent Value | string |
Unspecified |
Web | The default consent value to forward for the Ad Storage Field |
Analytics Storage Default Consent Value | string |
Unspecified |
Web | The default consent value to forward for the Analytics Storage Field |
Was this page helpful?