Skip to content
  • There are no suggestions because the search field is empty.

How to set up Universal Client-Side Integration through Google Tag Manager

Follow the steps below to integrate ProfitMetrics Universal Integration through Google Tag Manager


  1. Create the "All pages" tag
  2. Create the "Purchase" tag
  3. Create document.cookie variable

NOTE: You will need your Public ID, we recommend recording it from here in advance

Create the "All pages" tag

  1. Navigate to https://tagmanager.google.com to select your account and container
  2. Click Tags
    Implement ProfitMetrics Tags in Google Tag Manager - Step 2
  3. Click New
    Implement ProfitMetrics Tags in Google Tag Manager - Step 3
  4. Click Tag Configuration Implement ProfitMetrics Tags in Google Tag Manager - Step 4

  5. Click Discover more tag types in the Community Template Gallery
    Implement ProfitMetrics Tags in Google Tag Manager - Step 5

  6. Search for "ProfitMetrics" Implement ProfitMetrics Tags in Google Tag Manager - Step 8
  7. Click PM Client-side Integration - All pagesImplement ProfitMetrics Tags in Google Tag Manager - Step 9

  8. Click "Add to workspace"

     Implement ProfitMetrics Tags in Google Tag Manager - Step 10

  9. Click "Add"

    Implement ProfitMetrics Tags in Google Tag Manager - Step 11
  10. Paste the Public ID found in ProfitMetrics > Websites 
  11. Leave "Consent Control" set to Google Consent Mode (Recommended) OR change it based on your preferences.
  12. Click"Triggering"

  13. Click "DOM Ready". You can also choose a custom event specific to your Cookie Consent Banner to ensure the tag fires AFTER consent has been updated.
    Screenshot 2024-06-19 at 9.34.04 AM

  14. Click "Save"


  15. Click "Save"


Create the "Purchase" tag

  1. Click Tags
    Implement ProfitMetrics Tags in Google Tag Manager - Step 2
  2. Click New
    Implement ProfitMetrics Tags in Google Tag Manager - Step 3
  3. Click Tag Configuration Implement ProfitMetrics Tags in Google Tag Manager - Step 4

  4. Click Discover more tag types in the Community Template Gallery
    Implement ProfitMetrics Tags in Google Tag Manager - Step 5

  5. Search for "ProfitMetrics" Implement ProfitMetrics Tags in Google Tag Manager - Step 8
  6. Click PM Client-side Integration - PurchaseImplement ProfitMetrics Tags in Google Tag Manager - Step 13

  7. Click Add to workspace

     Integrate PM Client-Side Tag in Google Tag Manager - Step 9

  8. Click Add

    Implement ProfitMetrics Tags in Google Tag Manager - Step 11
  9. Paste the Public ID found in ProfitMetrics > Websites 
    Setting Up Google Tag Manager Variables - Step 2
  10. Leave "Select dataLyaer type for quick setup" set to Auto (Recommended) OR change it based on the structure of you dataLayer implementation. You can also choose Custom for manual configuration.
    Setting Up Google Tag Manager Variables - Step 3
  11. Go through the list of "Additional fields" and insert variables for email, phone, payment method, shipping method, shipping country, Shipping zipcode and Shipping weight. If you do not have variables for these, ProfitMetrics will be limited to work with the values you have provided. Email is necessary for Enhanced Conversions in Google Ads.
    Setting Up Google Tag Manager Variables - Step 51

  12. Click Triggering
    Setting Up Google Tag Manager Variables - Step 56

  13. Select the "Purchase" event OR any other event that fires ONLY ONCE on the order confirmation page AFTER consent has been updated.
    Setting Up Google Tag Manager Variables - Step 63
  14. Click "Save"
    Setting Up Google Tag Manager Variables - Step 64

  15. Click "Save"
    Setting Up Google Tag Manager Variables - Step 65



Create document.cookie variable

  1. Click on "Variables", then click "New"


  2. Click the block to select the variable type.



  3. Click "JavaScript Variable."


  4. Click the text box for Global Variable Name


  5. Type "document.cookie"

  6. Copy/Paste the name "document.cookie" from the Global Variable name to the variable name at the top left


  7. Click "Save"


Once those changes are completed, your basic setup should be complete!

Verify changes by publishing and waiting for an order, or by placing a test order in preview (knowledge base article pending)