Skip to main content
With Google Tag Manager (GTM), the install is configuration only: no code on your site. You need your pixel ID (lr_px_ followed by 22 characters), from your Lemrock contact.

1. Import the template

  1. Download the template: gtm-template.tpl.
  2. In GTM, go to Templates > Tag Templates > New.
  3. Open the overflow menu (⋮), choose Import, pick the file and save.

2. Load the pixel on every page

Create a tag: The second trigger matters: without it, a visitor who accepts cookies after landing loses their ad click.

3. Add the event tags

The add to cart (required)

Create a tag:
  • Fill the fields from your data layer with Data Layer Variables. If your data layer lacks the amount or currency, add them.
  • Amount format applies to Amount and to each Contents amount:
    • Currency units (default): 25.99 for €25.99, as most data layers hold prices. Use a dot, not a comma.
    • Cents: 2599 for €25.99. Also choose Cents for currencies without cents, such as JPY, and enter the price as is.
    • An amount that doesn’t match the format sends nothing and prints a console warning.
  • All amounts are before tax and after discounts, without shipping.
Create one tag per event, like the add-to-cart tag, changing Event, Amount, Contents and the trigger. For Order created only, fill Event ID with your order number. It makes an order count once, even if it’s reported twice. Hashed email and phone let Lemrock match a sale when the visitor comes back on another device or browser. Only on the Order created tag, open the User data section and fill Email SHA-256 and Phone SHA-256, usually from Data Layer Variables. Leave a field blank if you don’t have the value. Send hashes only: see Hash email and phone. The template has no consent field. Set consent on all Lemrock tags at once: in Tags, tick every Lemrock tag, click the consent (shield) icon, and require:
  • ad_storage, always.
  • ad_user_data too, on the Order created tag, if you send user data there (step 4).
To declare Lemrock in your cookie banner, see Consent (CMP).

6. Check and publish

  1. Open GTM Preview: the pixel’s debug mode turns on automatically.
  2. Follow Check your setup, adding an item to the cart.
  3. Publish the container: Submit > Publish.