---
title: "Attribution Tracker"
description: "Understand Where Your Leads Come From"
url: https://help.boxly.ai/en/articles/10182828-attribution-tracker
collection: "Marketing"
updated: 2026-11-27
language: en
---

# Attribution Tracker

Understand Where Your Leads Come From

🎥 **Watch How to Set Up the Attribution Tracker**  

Patients don't always enquire the first time they visit your website. They may browse your treatments and return days later when they're ready to get in touch.

With Boxly's Attribution Tracker, you can understand where your patient enquiries come from, whether it's a Google ad they clicked, a Facebook campaign, a Google search or another website that referred them to you.

You can choose to give credit to the source that first brought the patient to your website (First Touch) or the most recently tracked source before they enquired (Last Touch).

This information is automatically added to your leads in Boxly, helping you understand which marketing activities are generating enquiries and make better decisions about where to invest your marketing budget.

**Getting started is simple.** All you need to do is add a small piece of code to your website. Your existing forms, WhatsApp buttons and day-to-day processes continue to work as normal.

> **Info:** **Early access:** The Attribution Tracker is being tested with a small group of practices before it becomes available to everyone.
> Want to be one of the first practices to try it?
> Email us at [**support@boxly.ai**](mailto:support@boxly.ai) and we'll switch it on for you.

## **How Does This Help Your Practice?**

With the Attribution Tracker, you can:

-   See which marketing channels and campaigns are bringing in enquiries
    
-   Spot the ads that brought a patient to your website, even if they enquired days later
    
-   See fewer enquiries reported as Direct Traffic
    
-   Track enquiries from your website forms and WhatsApp buttons
    
-   Have new Lead Sources added for you when Boxly finds a source you haven't set up yet
    
-   Send more complete conversion information to Google Ads and Meta, helping your ads perform better
    

## Before You Start

You'll need:

-   A Boxly account on the Pro plan
    
-   Admin access to your Boxly account
    
-   Access to your website, or the email address of your website developer or marketing agency
    
-   A cookie consent banner on your website
    

> **Warning:** **Already have Boxly's Google Analytics (GA4) script on your website?**
> The Attribution Tracker now does the same job, so remove the old script when you add the new one. Your website developer can do both at the same time.

### **Step 1: Open Your Attribution Settings**

In Boxly, go to Settings → Lead Management → Attribution.

![The Settings > Lead Management > Attribution screen shows visitor tracking, website script, consent settings, and an orange highlight around Attribution in the sidebar. Visible: Settings, Lead Management, Lead sources, Ads management, Upload leads, Attribution.](https://staticfiles.gleap.io/ghelparticle/ohXL5ulJzl11HSpHMdW9tAZRXg5JHMaqMFnYJeWwZjeojv5xLj0c5qDv7DEIsSMd2fs8GdgNSIw.png)

### **Step 2: Add the Code to Your Website**

To start tracking, you'll need to add a small piece of code (called a script) to your website. This is a one-time setup.

1.  Under **Website script**, click **Generate script.**
    
2.  Tick the box to confirm your website asks visitors for cookie consent, then click **Show script**.
    
3.  Click **Copy script**. The script hides again when you leave the page.
    
4.  Add it to every page of your website, just before the closing `</body>` tag.
    

The easiest way to add it to every page is through a part of your website that appears on every page, such as the footer.

**Does someone else look after your website?**  
Click Email the script to your developer. Boxly prepares the email for you, with the script and set-up instructions. Add your developer's or agency's email address, check the message and click Send.

**Working with a marketing agency?**  
Share the Attribution Tracker: Guide for Marketing Agencies with them. It covers installing the script, cookie consent, tracking extra website actions and what Boxly records.

![A Boxly logo appears in the upper-right corner of a plain dark purple screen. Visible: Boxly.](https://staticfiles.gleap.io/ghelparticle/HJgJjEOCHEvXzrkjhYnG4rFALDCyszB2pKgMG2AmUfpKdjMzb0Kp2B7fm9VAelyK0eBUow9QeLK.gif)

### Step 3: Check Your Cookie Consent

The Attribution Tracker respects your visitors' privacy. It only starts tracking once a visitor accepts the relevant cookies.

It works automatically with these cookie consent tools:

-   CookieBot
    
-   CookieYes
    
-   OneTrust
    
-   Borlabs Cookie
    
-   Civic Cookie Control
    
-   Complianz
    
-   Any other cookie banner that uses the IAB TCF v2.0 standard (your developer or cookie tool provider can tell you if yours does)
    

**Not sure which tool your website uses?** Your website developer or marketing agency can tell you.

**Using a different cookie tool?** Your developer will need to add a small piece of code, so Boxly knows when a visitor accepts or withdraws consent. Boxly includes the instructions in the email to your developer. You'll also find them under Consent & events → Cookie consent, ready to copy.

> **Warning:** If a visitor declines or ignores your cookie banner, their enquiry still comes into Boxly as normal, but without attribution information.

![The Settings > Lead Management > Attribution screen shows visitor tracking, website script setup, consent options, and an orange outline around detected cookie consent tools. Visible: Settings, Lead Management, Attribution, No visitors in the last day, Script detected, LAST VISITOR.](https://staticfiles.gleap.io/ghelparticle/EHXEkuWNvaf1BrowXNcbmt6yU1aYCfoIMfixmCq0pYNzmaXO1KuAB2kiQbFiYwBVoX81hnE6C27.png)

### Step 4: Choose Your Attribution Model

Your attribution model decides which source gets the credit for an enquiry in Boxly.

For example, a patient clicks your Invisalign Google ad, browses your website and leaves without enquiring. A few days later, they come back to your website directly and submit an enquiry.

-   **First Touch:** Boxly gives credit to the first tracked source that brought the patient to your website. In this example, your Invisalign Google ad.
    
-   **Last Touch:** Boxly gives credit to the most recent tracked source before the patient enquired. This shows you what brought the patient back when they were ready to get in touch.
    

Under **Attribution Model**, choose **First touch** or **Last touch**.

**Which one should I choose?**   
We recommend First Touch for most practices. It shows you which campaigns originally brought patients to your practice, so you don't overlook an ad just because a patient didn't enquire on their first visit.

Last Touch may suit you better if you want to see which channels bring patients back when they're ready to enquire.

Your model only changes how enquiries are credited in Boxly's reports. It doesn't change the conversion information Boxly sends to Google Ads or Meta.

> **Info:** You can change your attribution model once an hour. If you try again sooner, Boxly will ask you to wait before making another change.

### Step 5: Check Your Tracking Is Working

Once the script is on your website, the card at the top of your Attribution page shows:

-   **Script detected:** Boxly has found the script on your website
    
-   **Last visitor:** when Boxly last saw a visitor on your website
    
-   **Leads linked:** how many leads have attribution information
    

Click **Refresh** to update it.

If you see **No visitors in the last day**, ask your website developer or agency to check that the script is on every page and that your cookie banner is working.

![The Settings > Attribution screen shows tracking status, visitor and linked-lead counts, and the attribution model; an orange outline highlights this status panel. Visible: Settings, Attribution, Tracking is live, Script detected, LAST VISITOR, LEADS LINKED.](https://staticfiles.gleap.io/ghelparticle/eiCTLgN9Tv6afYLC4ZtB5dY6gtSeimx5j1Janz1BLikRK8z4Vswusldzz3vUVFsbpu7cV3jeZHL.png)

## **How Does the Attribution Tracker Work?**

1.  **A patient visits your website.** Boxly records where they came from (an ad, an online search or another website), once they've accepted cookies.
    
2.  **They leave and come back later.** Boxly remembers their first visit for up to 60 days. On iPhones, iPads and Safari, the patient needs to come back within 7 days of their last visit, or Boxly treats them as a new visitor.
    
3.  **They enquire.** When they submit a form or click your WhatsApp button, Boxly adds where they came from to their lead.
    
4.  **Boxly credits the source.** Using your attribution model, Boxly credits the right marketing source in your reports.
    
5.  **The lead moves through Boxly.** When the lead reaches a milestone, such as Consultation Booked, Boxly sends the conversion to your connected Google Ads or Meta account.
    

**What Boxly tracks**

-   Ad clicks from Google Ads, Meta (Facebook and Instagram), Microsoft Ads and TikTok Ads
    
-   UTM tags (the extra details in your marketing links that show which campaign a visitor came from)
    
-   Google Analytics 4 (GA4) visitor IDs, so leads can be matched to website visits in GA4
    

Your team doesn't need to add any of this to leads by hand.  
Conversions are sent back to Google Ads and Meta only. Microsoft Ads and TikTok Ads clicks are used for your reports in Boxly.

**New Lead Sources, added for you**  
You don't need to set up every Lead Source before you start. If Boxly finds a source that isn't in your account yet, it creates the Lead Source for you and adds it to the lead.

For example, a patient finds you through your Google Business Profile, visits your website and enquires. If you don't have a Google My Business Lead Source yet, Boxly creates one as an unpaid Lead Source. If it already exists, Boxly uses that one.

## Track Other Website Actions (Optional)

Boxly tracks form submissions and WhatsApp button clicks automatically. Your website developer can also set up tracking for other actions, such as:

-   A patient opening a chat widget
    
-   A patient completing an online booking
    
-   A patient clicking a particular button
    

The instructions are under **Consent & events → Custom events**, and in the email to your developer. New actions show in your reports within a few minutes of the first one happening.

![Settings > Lead Management > Attribution shows the Website script and Consent & events sections, with an orange outline around the Custom events tab. Visible: Settings, Lead Management, Attribution, Website script, Generate script, Form submissions.](https://staticfiles.gleap.io/ghelparticle/NBgwf5PLdfqZRsvjoupx7pFhR6FeV9g5cK8tyeFx2XhwMzy2kq3Ijdlz9K9gK9F95LM0IAyJ09K.png)

## **Important Things to Know**

Privacy settings, browsers and the way patients use different devices can affect what the Attribution Tracker sees. In these cases, enquiries still come into Boxly as normal, but some attribution information may be missing.

**Phone calls**. The Attribution Tracker works on your website, so it doesn't track phone calls. To see where your calls come from, your phone or call-tracking provider needs to send that information to Boxly. Speak to your provider.

**Patients who come back later.** Boxly remembers a patient's first visit for up to 60 days. If they click a new ad in that time, the 60 days start again. After that, a return visit counts as a new one. On iPhones and Safari, this is shorter (see below).

**Website forms and booking widgets.** Most forms work. Some third-party forms and booking widgets may not pass the information to Boxly. Send a test enquiry through each form on your website and check the lead in Boxly shows where it came from.

**iPhones, iPads and Safari.** These browsers limit tracking to protect people's privacy. This includes every browser on an iPhone or iPad (Chrome too), Safari on a computer, the browsers inside the Facebook and Instagram apps, Brave, and private or incognito windows. In these browsers:

-   Boxly recognises a returning patient if they come back to your website within 7 days. If they come back after more than 7 days, it counts as a new visit
    
-   The ad's click ID may be removed, so the enquiry is credited to the campaign rather than the exact ad. Your UTM tags are kept, so keep using them
    

**Different devices.** If a patient clicks your ad on their phone and enquires later on their laptop, Boxly can't link the two visits.

**Ad blockers.** Some ad blockers and privacy tools stop the Attribution Tracker from loading, so attribution information won't be available for those visitors.

**Different numbers in Google Ads and Meta.** Your attribution model only affects Boxly's reports. Google Ads and Meta use their own attribution, so they may credit a different campaign. This is normal.

### **Frequently Asked Questions**

**Do I still need UTM links on my ads?**  
Yes. Keep using them. The Attribution Tracker picks up your UTM tags along with ad click IDs. Some browsers, such as Safari, remove ad click IDs but keep UTM tags, so your UTMs make sure the enquiry is still linked to the right campaign.

**Do I need to create Lead Sources in Boxly myself?**  
No. If Boxly finds a source that isn't in your account, it creates it for you. If it already exists, Boxly uses that one.

**Does it only track paid ads?**  
No. It also tracks unpaid sources, such as Google searches, your Google Business Profile and other websites that send visitors to you.

**Do I need to add the script to every page?**  
Yes. The easiest way is to add it to a part of your website that appears on every page, such as the footer. Your developer or agency can help.

**What if a visitor doesn't accept cookies?**  
Their enquiry still comes into Boxly as normal, just without attribution information.

**Will changing my attribution model affect my Google Ads or Meta results?**  
No. It only changes how enquiries are credited in Boxly's reports.

**Can I use it on more than one website?**  
Yes. Add the same script to each website, as long as their enquiries come into the same Boxly account.

### **Need Help?**

Whether you need help setting up the Attribution Tracker, choosing a model or reading your reports, contact us at [support@boxly.ai](mailto:support@boxly.ai).

### **Related articles**

[

Attribution Tracker: Guide for Marketing Agencies

How to set up the Attribution Tracker for the practices you work with and what it shows them

](https://help.boxly.ai/en/articles/10182829-attribution-tracker-guide-for-marketing-agencies.md)[

Lead Sources

Track where your leads are coming from

](https://help.boxly.ai/en/articles/10182693-lead-sources.md)[

UTM Reporting in Boxly

Gives you a clear view of where your leads are coming from using UTM data.

](https://help.boxly.ai/en/articles/10182785-utm-reporting-in-boxly.md)[

What Boxly Needs to Track Your Leads Correctly (and Send Conversions Back to Google Ads & Facebook Ads)

For Boxly to track leads correctly and send conversion events back to your ad platforms, the most important thing is this:

](https://help.boxly.ai/en/articles/10182770-what-boxly-needs-to-track-your-leads-correctly-and-send-conversions-back-to-google-ads-and-facebook-ads.md)
