lr_px_ followed by 22 characters. Your Lemrock contact gives it to you.
The four events
Lemrock tracks four events. Send all four.1. Import the template
- Download the template: gtm-template.tpl.
- In GTM, go to Templates > Tag Templates > New.
- 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 one tag per event
Create one Lemrock Pixel tag per event. For an order:
Repeat for the other three events, changing Event and the trigger. Then publish the container.
- Fill the fields from your data layer with Data Layer Variables. If your data layer lacks the order number, total or currency, add them.
- Event ID makes an order count once, even if it’s reported twice. Use the order number.
- Amount format applies to Amount and to each Contents amount:
- Currency units (default):
25.99for €25.99, as most data layers hold prices. Use a dot, not a comma. - Cents:
2599for €25.99. - An amount that doesn’t match the format sends nothing and prints a console warning. For currencies without cents, such as JPY, choose Cents and enter the price as is.
- Currency units (default):
4. Add user data (recommended)
Hashed email and phone let Lemrock match a sale when the visitor comes back on another device or browser. Open the User data section of your Lemrock tags 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, never the raw values. Lemrock refuses anything that isn’t a SHA-256 hash.- Normalize:
- Email: trim spaces, lowercase.
Jane.Doe@Example.com→jane.doe@example.com. - Phone: digits only, starting with the country code, no
+or leading zeroes.+33 6 12 34 56 78→33612345678.
- Email: trim spaces, lowercase.
- Hash with SHA-256 and send 64 lowercase hex characters.
jane.doe@example.com→86e0b9e56c17cc4d12387e1949b85053fbe73bc3ce5a1188713a9d300cc6133d.
5. Set up consent
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_datatoo, if you send user data (step 4).
6. Check your setup
-
Open GTM Preview. Debug mode turns on automatically. Pixel messages start with
[Lemrock Pixel]in the browser console. -
Simulate an ad click. Start Preview on any page with
?lrclid=lr_clk_0000000000000000000000added, then accept your cookie banner. The console confirms the click token is stored. -
Send a test event from the console. It’s checked but not recorded:
You should see
order_created test-1 sent (validate_only) → 202. -
Place a test order and check the same line appears without
(validate_only).
- Read the console. Setup mistakes always print a warning, even outside Preview.
- Make sure your redirects keep
lrclidin the URL.

