Set up new customer acquisition parameter in your conversion tracking tag

The new customer acquisition goal allows you to optimize for acquiring new customers in your Google Ads campaign. In this article, we’ll let you know how to set up new customer acquisition reporting using tagging to further improve the accuracy of new customer detection in your campaigns. Learn more About new customer acquisition goals .

Note: Customer acquisition reporting is intended for advertisers optimizing toward the new customer acquisition goal . Customer acquisition reporting only works with "Purchase" conversions in Google Ads. Your purchase conversion can be tracked with Google tag, Google Tag Manager, Shopify, Firebase, Google Analytics, and offline conversion imports. Floodlight purchase conversions are currently not supported. Shopify advertisers who have migrated to the Google & YouTube app have the parameter set up automatically for them.

On this page


Set up customer acquisition reporting

Note: The new customer acquisition tag isn't supported currently for Floodlight conversions.

Install with the Google tag

Step 1 of 2: Install the Google tag conversion tracking code on your website

Review Set up conversion tracking for your website to install conversion tracking with the Google tag.

Step 2 of 2: Add the new_customer parameter to your tag event snippet

You’ll want to add the following customer parameter to your event snippet:

Parameter
Value type
Description
customer_type

String: 'new' / 'returning'

Is the customer who is converting a new customer?
  • New: New customer who hasn't purchased within a given time period. The Google auto-detected window for returning customers is 540 days.
  • Returning: A returning customer who has purchased during the given time period.

Example of the Google tag configured with the above parameter:

Install with Google Ads Conversion Tracking

<script type="text/javascript">

gtag('event', 'purchase', {

"send_to": "AW-CONVERSION_ID/CONVERSION_LABEL", /* PLEASE REPLACE WITH YOUR VALUE */

...

"new_customer": true, /* calculate dynamically, populate with true/false */

...

]

});

/* ]]> */

Install with Google Analytics Conversion Tracking

<script type='text/javascript'>

gtag('event', 'purchase', {

'send_to': 'G-XXXXXXXXXX', /* PLEASE REPLACE WITH YOUR GOOGLE TAG ID */

...

'customer_type': 'new', /* calculate dynamically, populate with new/returning */

...

]

});

/* ]]> */

Install with Google tag manager

Note: If you've directly implemented Google tag or Google Tag Manager on Shopify, learn more about Migrating your Google tags with the Google & YouTube app on Shopify .

Add the customer_type parameter to your Google Tag Manager code

  1. Select the new customer conversion tag.
  2. Check the “Provide new customer data” check box.
  3. Choose your data source of either Data Layeror Custom Fields.
  4. The below variables are required to be added on the checkout page to be referenced.
Parameter
Value type
Description
customer_type
String: 'new' / 'returning'
Is the customer who is converting a new customer?
  • New: New customer who hasn't purchased within a given time period. A 540-day lapse window is recommended and set at default, but not required.
  • Returning: A returning customer who has purchased during the given time period
  • Not specified: If there's uncertainty, for example, use of guest checkout

The data layer is used to temporarily hold data. It’s a structured format that is understood by Tag Manager to make it easy for you to move that data from your web page or mobile app to tags, triggers, and other variables in Tag Manager.

You don't necessarily need to set up a data layer for variables to retrieve information. Tag Manager Variables can also be configured to retrieve values directly from Custom Fields, first-party cookies, and the DOM. However, the best practice is to have your variables retrieve information directly from a well-organized data layer object. A data layer implementation can minimize the likelihood of data loss from inadvertent code changes, encourage a well-organized and accessible data model, and simplify troubleshooting.

For each conversion, you can either let Google auto-detect whether a conversion is new or report this yourself via the conversion tag which would allow for better accuracy in your Google Ads reports. You can also adjust how much you value a new customer by adding a fraction of the average order value to their first purchase.

Customer lifetime value is calculated using the average conversion value for Shopping campaigns and the purchase frequency of your customers. Keeping this in mind, you can choose a fraction to determine the new customer value that you feel comfortable with.

Example implementation with Data Layer:

dataLayer.push({

'event': 'purchase',

'transaction_id': '1545c34e-691e-4726-aeda-b798df255e9c',

'affiliation': 'Google online store',

'value': 23.07,

'currency': 'USD',

'customer_type': 'new',

});

Example implementation with Custom Fields:

Install with Google Ads Conversion Tracking

<script type='text/javascript'>

send_to = 'AW-CONVERSION_ID/CONVERSION_LABEL'; /* PLEASE REPLACE WITH YOUR VALUE */

transaction_id = '1545c34e-691e-4726-aeda-b798df255e9c';

affiliation = 'Google online store';

value = 23.07;

currency = 'USD';

customer_type = 'new';

</script>

Install with Google Analytics Conversion Tracking

After you have the data in Google Tag Manager, be sure to set it up in Google Tag Manager.

Event Tag

Set up your Event Tag. Ensure you have the Event Name, GA Tracking ID, the customer_type parameter, and the variable value.

Setting up the Variable

Make sure to set up the trigger and variable. You can do this either via the data layer variable, or a javascript variable.

Note: If you are using Server-Side Google Tag Manager as a passthrough, you can implement as instructed above and everything will happen automatically. Server-Side Google Tag Manager users may also use sGTM to augment the event on the way through the server-side container with this additional data.

Then, you can debug events in Firebase in near real-time. You can also track new customer events in Firebase .

Install with Firebase

If you’re using Google Tag Manager currently, you can continue to use Tag Manager with Firebase for Android or iOS . The following steps explain set up and verification of Firebase conversion tracking.

Step 1 of 3: Set up Firebase conversion tracking

  1. Add Google Analytics to your Android or iOS app.
  2. Sign in to your Google Ads Account .
  3. Link your Google Ads account with Google Analytics App and Firebase. Follow the instructions on linking .
  4. Measure app conversions from Google Analytics App using the Firebase SDK. Follow the instructions on measuring app conversion with Firebase .
Note: To measure conversions with Firebase, you must use the new SDK, Android 17.3 and iOS 6.2, or later.

Step 2 of 3: Verify conversion action settings

In order to track new customer acquisitions, you’ll want to verify that you've correctly set up the conversion action. Map your conversion action settings to the following:

  • Make “conversion action category” equal to “purchase”.
  • Make the “Firebase event” equal to “purchase”.
  • Make the “source” equal to “Firebase”.
  • Make your conversion actions “biddable” (primary conversion action).

Step 3 of 3: Add the customer_type parameter to your purchase event

Before you add the customer_type parameter, you have to update the purchase event. If you haven’t created a purchase event yet, follow the instructions for Android and for iOS . The customer_type parameter listed below is required for new customer acquisition tracking using Firebase.

Parameter
Value type
Description
customer_type
String: 'new' / 'returning'
Is the customer who is converting a new customer?
  • New: New customer who hasn't purchased within a given time period. A 540-day lapse window is recommended and set at default, but not required.
  • Returning: A returning customer who has purchased during the given time period
  • Not specified: If there's uncertainty, for example, use of guest checkout

Example of a Firebase ecommerce_purchase event driven by a new customer

Android:

// Prepare ecommerce bundle

Bundle ecommerceBundle = new Bundle();

// Set relevant bundle-level parameters

// New customer information. Should be calculated dynamically and populated with true/false.

ecommerceBundle.putBoolean( "new_customer", true ); // or false

ecommerceBundle.putDouble( Param.VALUE, 37.39 ); // Revenue, optional

ecommerceBundle.putString( Param.CURRENCY, "USD" ); // Optional

// Log event with ecommerce bundle

mFirebaseAnalytics.logEvent( Event.PURCHASE, ecommerceBundle );

iOS:

// Prepare ecommerce dictionary

NSDictionary *ecommerce = @{

// New customer information. Calculate dynamically, populate with @YES/@NO.

@"customer_type" : new, // or returning

// kFIRParameterValue : @75.98, // Revenue, optional.

// kFIRParameterCurrency : @"USD", // Optional.

};

// Log ecommerce_purchase event with ecommerce dictionary.

[FIRAnalytics logEventWithName:kFIREventPurchase

parameters:ecommerce];

Install with offline conversions

If you’re using offline conversion imports or enhanced conversions for leads, you can implement the new customer acquisition parameter in your imports via Google Ads API and Google Analytics Data Import and Measurement Protocol.
For API based uploads:
Parameter
Value type
Description
customer_type
String: 'new' / 'returning'
Is the customer who is converting a new customer?
  • New: New customer who hasn't purchased within a given time period
  • Returning: A returning customer who has purchased during the given time period
  • Not specified: If there's uncertainty, for example, use of guest checkout

Learn more about the customer_type field in the ClickConversion API documentation.

The new customer parameter is not supported in file-based uploads.


Test new customer conversions

Confirm that you're using the Google tag and that you've installed the customer_type parameter.

Use Tag Assistant to confirm if the parameters are being passed (Recommended)

  1. Go to Summary within the GoalsmenuGoals Icon.
  2. Select View all conversion actions.
  3. In the conversions summary table, check for "Unverified" or "Inactive" statuses in the "Tracking status" column.
  4. Select Troubleshootin the "Actions" column.
  5. Select Get Startedto open the Tag Assistant window. This will open a new window.
  6. Enter the URL of the webpage that you want to troubleshoot. It’s best to use a landing page or home page instead of the conversion page URL directly. After you visit the landing page, you can navigate to the conversion page.
  7. Select Connect. This will open your webpage in a new browser tab. The conversions summary table and Tag Assistant window will remain open for use later on. Don't close these tabs.
  8. Search for the request that contains your conversion (vndc). The query string parameters should include additional parameters, as shown in the example below:
    • New customers: vdnc: true
    • Returning customers: vdnc: false
  9. Tag Assistant will guide you through the steps to verify the conversion action and provide feedback on each test.
  10. After you've triggered the conversion actions that you’d like to test, you can select Finish. If you believe you triggered your conversion and Tag Assistant didn't show that, you can select I thought I already triggered it .
    • You can select and drag the Tag Assistant badge anywhere on the page, or minimize it, to view and test your webpage.
  11. After you select Finish, the Tag Assistant badge and your webpage will close. The results of your testing will open in the Tag Assistant window. The results of the troubleshooting page will show the results of the original conversion action you tested, as well as any other conversion action you tested. In this page, you can view additional information about each conversion action that was verified.
  12. Select Close Tag Assistantwhen you've finished. Tag Assistant will return you to the Google Ads conversions summary page.

Use Chrome Developer tools to inspect the page

Use Chrome Developer tools to inspect the page to ensure code optimization by following these steps:

  1. Select the Chrome menu at the top right corner of your browser window.
  2. Select Tools, then select Developer Tools.
  3. Right-click on any page element and select Inspect Element. The DevTools window will open at the bottom of your Chrome browser.
  4. In the DevTools window, select Network.
  5. Submit your test order in the web browser.
  6. Search for “/conversion” to find the request that contains your conversion. The query string parameters should include additional parameters, as shown in the example below:
    • New customers: vdnc: true
    • Returning customers: vdnc: false

Test new customer conversions with Firebase

Confirm that you're using Firebase and that you've added or adapted the purchase event with the cart data parameters.


Shopify advertisers

We strongly recommend Shopify advertisers install the Google-developed Google & YouTube app . This app automatically implements the necessary Google tracking code on your Shopify store, eliminating the need for manual tagging. On an upgraded thank you page, it also automatically identifies new customers based on whether it is their first order in the Shopify store, simplifying your implementation. If you have directly implemented Google tag or Google Tag Manager on Shopify, learn more about Migrating your Google tags with the Google & YouTube app on Shopify .


Related links

Was this helpful?

How can we improve it?
Search
Clear search
Close search
Google apps
Main menu
7826403904754491193
true
Search Help Center
true
true
true
true
true
73067
false
false
false
true
false
Create a Mobile Website
View Site in Mobile | Classic
Share by: