Click tracking (readad.js)
Clicks from Google and ChatGPT Ads land on your website, and people then open WhatsApp. The chat carries no referral, so without help the deal can’t be tied to the ad. readad.js fixes that.
What the script does
Section titled “What the script does”On an ad click it:
- Keeps the click ids (
gclid,gbraid,wbraid, ChatGPT’soppref) and UTM tags for 90 days in the visitor’s browser. - Records the click with Read Ad, under a short ref code like
RA-7K2Q9P. Only the host and path of the landing page are kept. - Fills hidden
gclidfields in your forms. - Adds
(Ref: RA-XXXXXX)to the prefilled text of WhatsApp links when they are clicked.
When the visitor sends that message, the next ChatAgent sync finds the ref code and links the deal to the click.
Install
Section titled “Install”Your personal snippet, with your site key, is in the guide in the app: Channel Checklist → Google → Offline conversions, step 2.
- In your site template: paste it just before
</body>, so it runs on every page. - With Google Tag Manager: add a Custom HTML tag with the snippet, trigger All Pages, name it “Read Ad click capture”, then Save → Submit → Publish.
The site key is public: it can only record clicks, not read data.
Test it
Section titled “Test it”Open your site with a test ?gclid=TEST123 in the URL, click a WhatsApp button and check that the message ends with a ref code. The guide’s step 3 turns green once Read Ad has seen your site and a click.
Cookie consent
Section titled “Cookie consent”Set window.READAD_DISABLED = true before the script loads to turn it off until the visitor consents.