---
title: Adding the Gleanin advocacy tool to your confirmation page
description: In this article, you’ll learn how to add the Gleanin share tool to your registration confirmation pages. You can implement the share tool using the standard HTML setup on most registration pages, use custom code for certain registration providers, or share a direct link to the advocacy tool in confirmation emails and other communications.
---

[Skip to content](https://resources.gleanin.com/knowledge/adding-share-tool-to-your-confirmation-page#main-content)

[![03\_Gleanin\_Logo\_RGB\_Violet](https://resources.gleanin.com/hs-fs/hubfs/03_Gleanin_Logo_RGB_Violet.png?width=129&height=40&name=03_Gleanin_Logo_RGB_Violet.png)](https://gleanin.com/)

Open main navigation

Close main navigation

 Welcome to the Gleanin help centre, search for an answer or navigate via the sections below

- There are no suggestions because the search field is empty.

1. [Help Center](https://resources.gleanin.com/knowledge?hsLang=en)
2. [Running your campaign](https://resources.gleanin.com/knowledge/running-your-campaign?hsLang=en)

# Adding the Gleanin advocacy tool to your confirmation page

## In this article, you’ll learn how to add the Gleanin share tool to your registration confirmation pages. You can implement the share tool using the standard HTML setup on most registration pages, use custom code for certain registration providers, or share a direct link to the advocacy tool in confirmation emails and other communications. 

Only the attendee campaign can be used with the advocacy tool, as it contains no personal details and is the same for all registrants.

**Please ensure that both steps of [conversion tracking](https://resources.gleanin.com/knowledge/new-conversion-tracking?hsLang=en) are completed before you set up your advocacy tool. Failing to do so will result in your conversions not being tracked.**

 

**[Standard HTML setup](https://resources.gleanin.com/knowledge/adding-share-tool-to-your-confirmation-page#standard)**  
**[Standard HTML setup with Google Tag Manager](https://resources.gleanin.com/knowledge/adding-share-tool-to-your-confirmation-page#standard-gtm)**  
**[Grip Events](https://resources.gleanin.com/knowledge/adding-share-tool-to-your-confirmation-page#grip-events)**

Visit by GES:  
**[Pop-up](https://resources.gleanin.com/knowledge/adding-share-tool-to-your-confirmation-page#visit-pop-up)**  
**[Embed](https://resources.gleanin.com/knowledge/adding-share-tool-to-your-confirmation-page#visit-embed)**

**[Cvent](https://resources.gleanin.com/knowledge/adding-share-tool-to-your-confirmation-page#cvent)**  
**[Pheedloop](https://resources.gleanin.com/knowledge/adding-share-tool-to-your-confirmation-page#pheedloop)**  
**[Swoogo](https://resources.gleanin.com/knowledge/adding-share-tool-to-your-confirmation-page#swoogo)**

Eventbrite:  
**[Form registration](https://resources.gleanin.com/knowledge/adding-share-tool-to-your-confirmation-page#eventbrite-form)**  
**[Embedded checkout](https://resources.gleanin.com/knowledge/adding-share-tool-to-your-confirmation-page#eventbrite-embed)**

**[Registration pages without JavaScript or HTML embed](https://resources.gleanin.com/knowledge/adding-share-tool-to-your-confirmation-page#no-java)**  
**[Troubleshooting & help](https://resources.gleanin.com/knowledge/adding-share-tool-to-your-confirmation-page#help)**

You can also send registrants a link to the advocacy tool, which you can use in your registration confirmation [emails](https://resources.gleanin.com/knowledge/where-do-i-get-my-attendee-campaigns-share-tool-link?hsLang=en) or any other communication with them in the run-up to the event.

### **Standard web page HTML setup**

To make the Gleanin advocacy tool appear on your registration confirmation page, you need to do the following:

1. Create your attendee campaign; a guide on that can be found [here](https://resources.gleanin.com/knowledge/how-do-i-create-an-attendee-campaign?hsLang=en).
2. Go to the **Advocacy tool** in the left-hand menu and choose the setting below:

- - **Display the Gleanin advocacy tool** - choose between pop-up or embed;
    - **Campaign to display** - choose the campaign from the dropdown; please note that only attendee campaigns can be displayed as they are not personalised to an individual;
    - **Pop-up delay** - you can set a short delay before the pop-up appears;
    - **Advanced reporting** - only available on Pro subscription; more information on the feature can be found [here](https://resources.gleanin.com/knowledge/advanced-reporting-2?hsLang=en);
    - **Custom code options** - select **HTML web page (standard);**
    - Click **Generate code,** and the code you need will appear on the right-hand side.

Please provide this code to your registration page provider or the registration team and request that they add it to the registration confirmation page. Make sure that the **added code is exactly as generated** on the platform and that **all components of the code are included** and it is implemented on the **confirmation page** **only**.

Any changes, typos, or omissions will cause the code to fail, and the advocacy tool will not be displayed.

Please ensure that you have set up [conversion tracking](https://resources.gleanin.com/knowledge/new-conversion-tracking?hsLang=en) to effectively monitor conversions for your event.

### **Standard web page HTML setup using Google Tag Manager**

To make the Gleanin advocacy tool appear on your registration confirmation page, you need to do the following:

1. Create your attendee campaign; a guide on that can be found [here](https://resources.gleanin.com/knowledge/how-do-i-create-an-attendee-campaign?hsLang=en).
2. Go to the **Advocacy tool** in the left-hand menu and choose the setting below: 
     - - **Display the Gleanin advocacy tool** - choose between pop-up or embed;
           - **Campaign to display** - choose the campaign from the dropdown; please note that only attendee campaigns can be displayed as they are not personalised to an individual;
           - **Pop-up delay** - you can set a short delay before the pop-up appears;
           - **Advanced reporting** - only available on Pro subscription; more information on the feature can be found [here](https://resources.gleanin.com/knowledge/advanced-reporting-2?hsLang=en);
           - **Custom code options** - select **HTML web page (standard);**
           - Click **Generate code,** and the code you need will appear on the right-hand side. Copy this code.
3. Go to the **Google Tag Manager** and find a container used for this event.
4. **Create a new tag** within that container, naming it "Gleanin advocacy tool".  Set the tag type to **Custom HTML**.
5. **Paste the snippet of the code** generated in the advocacy tool section in your Gleanin account into the **HTML box**.
6. Find **an existing** trigger or create **a new one** that will fire **only on the confirmation page** (in the example below, we have a page path containing thank-you, but it might be a different one in your case, as long as it is a confirmation page-only) and apply it to the tag.  
   ![](https://resources.gleanin.com/hs-fs/hubfs/Screenshot%202025-03-25%20at%2008-28-25-png.png?width=670&height=169&name=Screenshot%202025-03-25%20at%2008-28-25-png.png)
7. **Save** all the changes.

Make sure that the **added code is exactly as generated** on the platform and that **all components of the code are included** and it is implemented on the **confirmation page** **only**.

Any changes, typos, or omissions will cause the code to fail, and the advocacy tool will not be displayed.

Please ensure that you have set up [conversion tracking](https://resources.gleanin.com/knowledge/new-conversion-tracking?hsLang=en) to effectively monitor conversions for your event.

### **Grip Events**

To make the Gleanin advocacy tool appear on your **Grip Events** registration confirmation page, you need to do the setup in your Grip account by providing the Event ID and Campaign ID which you can find in your Gleanin account.

![image (1)](https://resources.gleanin.com/hs-fs/hubfs/image%20(1).png?width=670&height=172&name=image%20(1).png)

To obtain the Event ID from your Gleanin account, you need to follow these steps:

1. Go to the Conversion tracking section on the left-hand side menu.
2. Expand the Confirmation page tracking section and choose pop-up and HTML.
3. You will find the Event ID in the code below. Please note that it is called "scope" in your Gleanin account. 
   
   ![Screenshot 2025-08-12 at 15.48.48](https://resources.gleanin.com/hs-fs/hubfs/Screenshot%202025-08-12%20at%2015.48.48.png?width=670&height=305&name=Screenshot%202025-08-12%20at%2015.48.48.png)

To obtain the campaign ID from your Gleanin account, you need to follow these steps:

1. Create your attendee campaign; a guide on that can be found [here](https://resources.gleanin.com/knowledge/how-do-i-create-an-attendee-campaign?hsLang=en).
2. Once created, you will find the campaign ID in the URL:
   
   ![Screenshot 2025-08-12 at 15.46.18](https://resources.gleanin.com/hs-fs/hubfs/Screenshot%202025-08-12%20at%2015.46.18.png?width=670&height=130&name=Screenshot%202025-08-12%20at%2015.46.18.png)

Add both of those IDs into the required field in your Grip account.

Please bear in mind that for the Grip events, following this setup will give you both the Advocacy tool for you attendee campaign and the conversion tracking.

### **Visit by GES confirmation page advocacy tool setup:**

#### **Implementing the advocacy tool as a pop-up**

To make the Gleanin advocacy tool appear as a pop-up on your Visit registration confirmation page, you need to do the following:

1. Create your attendee campaign; a guide on that can be found [here](https://resources.gleanin.com/knowledge/how-do-i-create-an-attendee-campaign?hsLang=en).
2. Go to the **Advocacy tool** in the left-hand menu and choose the setting below: 
     - - **Display the Gleanin advocacy tool** - choose pop-up; for embed setup, see section below;
           - **Campaign to display** - choose the campaign from the dropdown; please note that only attendee campaigns can be displayed as they are not personalised to an individual;
           - **Pop-up delay** - you can set a short delay before the pop-up appears;
           - **Advanced reporting** - only available on Pro subscription; more information on the feature can be found [here](https://resources.gleanin.com/knowledge/advanced-reporting-2?hsLang=en);
           - **Custom code options** - select **Visit by GES;**
           - Click **Generate code,** and the code you need will appear on the right-hand side. Copy this code.
3. Log in to your Visit account and go to the event in question.
4. Go to the Forms section in the left-hand menu and select the relevant form
5. Make sure you select the **Complete** page and are on the **Current Page** Settings
   
   ![Screenshot 2025-03-25 at 15.59.52](https://resources.gleanin.com/hs-fs/hubfs/Screenshot%202025-03-25%20at%2015.59.52.png?width=423&height=553&name=Screenshot%202025-03-25%20at%2015.59.52.png)
6. Click in **Edit JavaScript**
7. Paste the code from Gleanin into the box and then save your changes.

Make sure that the **added code is exactly as generated** on the platform and that **all components of the code are included** and it is implemented on the **confirmation page** **only**.

Any changes, typos, or omissions will cause the code to fail, and the advocacy tool will not be displayed.

Please ensure that you have set up [conversion tracking](https://resources.gleanin.com/knowledge/new-conversion-tracking?hsLang=en) to effectively monitor conversions for your event.

#### **Embedding the advocacy tool on the form**

To embed the Gleanin advocacy tool on your Visit registration confirmation page, you need to do the following:

1. Create your attendee campaign; a guide on that can be found [here](https://resources.gleanin.com/knowledge/how-do-i-create-an-attendee-campaign?hsLang=en).
2. Go to the **Advocacy tool** in the left-hand menu and choose the setting below: 
     - - **Display the Gleanin advocacy tool** - choose embed; for pop-up setup, see section above;
           - **Campaign to display** - choose the campaign from the dropdown; please note that only attendee campaigns can be displayed as they are not personalised to an individual;
           - **Pop-up delay** - you can set a short delay before the pop-up appears;
           - **Advanced reporting** - only available on Pro subscription; more information on the feature can be found [here](https://resources.gleanin.com/knowledge/advanced-reporting-2?hsLang=en);
           - **Custom code options** - select **Visit by GES;**
           - Click **Generate code,** and the code you need will appear on the right-hand side. You will see two separate parts of the code generated.
3. Log in to your Visit account and go to the event in question.
4. Go to the Forms section in the left-hand menu and select the relevant form
5. Make sure you select the **Complete** page and are on the **Current Page** Settings  
   ![Screenshot 2025-03-25 at 15.59.52](https://resources.gleanin.com/hs-fs/hubfs/Screenshot%202025-03-25%20at%2015.59.52.png?width=329&height=431&name=Screenshot%202025-03-25%20at%2015.59.52.png)
6. Click in **Edit JavaScript**
7. Paste the JS snippet of the code from Gleanin into the box.  
   ![Screenshot 2025-03-26 at 08.43.31](https://resources.gleanin.com/hs-fs/hubfs/Screenshot%202025-03-26%20at%2008.43.31.png?width=314&height=204&name=Screenshot%202025-03-26%20at%2008.43.31.png)![Screenshot 2025-03-26 at 08.45.51](https://resources.gleanin.com/hs-fs/hubfs/Screenshot%202025-03-26%20at%2008.45.51.png?width=327&height=212&name=Screenshot%202025-03-26%20at%2008.45.51.png)
8. Click on **Apply** to save the code.
9. Select the point on the page where you want to embed the referral tool and select **Code View,** and copy the HTML code from Gleanin and paste it into the box.  
   **![Screen Recording 2025-03-26 at 08.49.23](https://resources.gleanin.com/hs-fs/hubfs/Screen%20Recording%202025-03-26%20at%2008.49.23.gif?width=367&height=145&name=Screen%20Recording%202025-03-26%20at%2008.49.23.gif)![Screenshot 2025-03-26 at 08.54.04](https://resources.gleanin.com/hs-fs/hubfs/Screenshot%202025-03-26%20at%2008.54.04.png?width=256&height=163&name=Screenshot%202025-03-26%20at%2008.54.04.png)**
10. Click the Code View icon to close the box and then save your changes

Make sure that the **added code is exactly as generated** on the platform and that **all components of the code are included** and it is implemented on the **confirmation page** **only**.

Any changes, typos, or omissions will cause the code to fail, and the advocacy tool will not be displayed.

Please ensure that you have set up [conversion tracking](https://resources.gleanin.com/knowledge/new-conversion-tracking?hsLang=en) to effectively monitor conversions for your event.

### **Cvent confirmation page advocacy tool setup**

To make the Gleanin advocacy tool appear on your Cvent registration confirmation page, you need to do the following:

1. Create your attendee campaign; a guide on that can be found [here](https://resources.gleanin.com/knowledge/how-do-i-create-an-attendee-campaign?hsLang=en).
2. Go to the **Advocacy tool** in the left-hand menu and choose the setting below: 
     - - **Display the Gleanin advocacy tool** - choose embed setup; pop-up is not supported on Cvent pages;
           - **Campaign to display** - choose the campaign from the dropdown; please note that only attendee campaigns can be displayed as they are not personalised to an individual;
           - **Advanced reporting** - only available on Pro subscription; more information on the feature can be found [here](https://resources.gleanin.com/knowledge/advanced-reporting-2?hsLang=en);
           - **Custom code options** - select **Cvent;**
           - Click **Generate code,** and the code you need will appear on the right-hand side. Copy this code.
3. Log in to your **Cvent** account and go to the event in question.
4. Go to the **Website & Registration** tab and select **Registration Process**
5. Click the **Customize **button for the confirmation page
6. Under **Page Elements,** select **Code** and drag it to where you want Gleanin to appear on the page 
     1. NB. If you don't see **Code** under **Page Elements** you will need to ask Cvent to switch this feature on for you
7. Paste the Gleanin code into the space
8. Click **Apply Changes **and then **Save**

Make sure that the **added code is exactly as generated** on the platform and that **all components of the code are included** and it is implemented on the **confirmation page** **only**.

Any changes, typos, or omissions will cause the code to fail, and the advocacy tool will not be displayed.

Please ensure that you have set up [conversion tracking](https://resources.gleanin.com/knowledge/new-conversion-tracking?hsLang=en) to effectively monitor conversions for your event.

### **Pheedloop confirmation page advocacy tool setup**

To make the Gleanin advocacy tool appear on your Pheedloop registration confirmation page, you need to do the following:

1. Create your attendee campaign; a guide on that can be found [here](https://resources.gleanin.com/knowledge/how-do-i-create-an-attendee-campaign?hsLang=en).
2. Go to the **Advocacy tool** in the left-hand menu and choose the setting below: 
     - - **Display the Gleanin advocacy tool** - choose pop-up setup; we have not been able to confirm the embed functionality on a Pheedloop form;
           - **Campaign to display** - choose the campaign from the dropdown; please note that only attendee campaigns can be displayed as they are not personalised to an individual;
           - **Advanced reporting** - only available on Pro subscription; more information on the feature can be found [here](https://resources.gleanin.com/knowledge/advanced-reporting-2?hsLang=en);
           - **Custom code options** - select **Pheedloop;**
           - Click **Generate code,** and the code you need will appear on the right-hand side. Copy this code.
3. Log in to your **Pheedloop** account and go to the event in question.
4. Click on **Settings**
5. Select **Custom code** and paste the code generated in your Gleanin account.

Make sure that the **added code is exactly as generated** on the platform and that **all components of the code are included** and it is implemented on the **confirmation page** **only**.

Any changes, typos, or omissions will cause the code to fail, and the advocacy tool will not be displayed.

Please ensure that you have set up [conversion tracking](https://resources.gleanin.com/knowledge/new-conversion-tracking?hsLang=en) to effectively monitor conversions for your event.

### **Swoogo confirmation page advocacy tool setup**

To make the Gleanin advocacy tool appear on your Swoogo registration confirmation page, you need to do the following:

1. Create your attendee campaign; a guide on that can be found [here](https://resources.gleanin.com/knowledge/how-do-i-create-an-attendee-campaign?hsLang=en).
2. Go to the **Advocacy tool** in the left-hand menu and choose the setting below: 
     - - **Display the Gleanin advocacy tool** - choose pop-up setup; Swoogo doesn't support an embed version of the tool.
           - **Campaign to display** - choose the campaign from the dropdown; please note that only attendee campaigns can be displayed as they are not personalised to an individual;
           - **Advanced reporting** - only available on Pro subscription; more information on the feature can be found [here](https://resources.gleanin.com/knowledge/advanced-reporting-2?hsLang=en);
           - **Custom code options** - select **HTML (web standard);**
           - Click **Generate code,** and the code you need will appear on the right-hand side. Copy this code.
3. Log in to your **Swoogo** account and go to the event in question.
4. Choose Website from the left-hand side menu.
5. Go to **Pages**, select the **Registration** tab and click on edit icon next to the **Confirmation** page  
   ![Screenshot 2025-03-26 at 10.32.00](https://resources.gleanin.com/hs-fs/hubfs/Screenshot%202025-03-26%20at%2010.32.00.png?width=402&height=420&name=Screenshot%202025-03-26%20at%2010.32.00.png)
6. Scroll down to the **Custom Code Settings** section and paste the Gleanin code into the **Custom Code** box.
7. Set the **Code Position** to **Foot of the page** - if this is not selected, the advocacy tool will fail.

Make sure that the **added code is exactly as generated** on the platform and that **all components of the code are included** and it is implemented on the **confirmation page** **only**.

Any changes, typos, or omissions will cause the code to fail, and the advocacy tool will not be displayed.

Please ensure that you have set up [conversion tracking](https://resources.gleanin.com/knowledge/new-conversion-tracking?hsLang=en) to effectively monitor conversions for your event.

### **Eventbrite advocacy tool setup**

#### **Adding Gleanin to an Eventbrite Form Registration**

If you're using an Eventbrite form (not their embedded checkout), you can add Gleanin to the end of your registration flow by automatically redirecting people to a different page when they complete registration.

#### **Redirecting to Gleanin When an Eventbrite Form is Completed**

To show Gleanin to registrants once they complete registration, we are going to add a redirect link in Eventbrite. The redirect can go to one of two places:

- Directly to the Gleanin advocacy tool.
- To one of your landing pages that has the Gleanin pop-up or embed added in the normal way.

To see what the user experience is like, you can register for our pretend event on [this form](https://www.eventbrite.co.uk/e/gleanins-widget-expo-tickets-744081296187). When you complete registration, you will be redirected to a separate “thank you” webpage with the Gleanin pop-up added in the normal way.

The steps for adding the redirect URL to your Eventbrite registration are:

1. Have your URL ready - either a “Sendable link” to an attendee campaign (select your campaign, then “How to run my campaign”), or a link to a webpage you have added Gleanin to.
2. Log in to your Eventbrite account
3. Select “Manage my events”
4. Select your event.
5. Select “Order options” \> “Order confirmation”.
6. Under “Customise Webpage” find the “Message For Order Confirmation Page (No Html Tags Allowed)”
7. Enter only the URL in this box
8. Scroll to the bottom and “Save Settings”

Once you’ve done that, we’d recommend you register for your event and test that you’re happy with the flow.

#### **Adding Gleanin to an Eventbrite Embedded Checkout**

If you're using Eventbrite’s [embedded checkout](https://www.eventbrite.com/support/articles/en_US/Multi_Group_How_To/how-to-sell-eventbrite-tickets-on-your-website-through-an-embedded-checkout?lg=en_US) on your website and want to display Gleanin when registration is completed, you can either redirect to a different page or trigger the Gleanin pop-up. To achieve both of these, we will be using the callback function supported by Eventbrite.

Before trying to introduce Gleanin, first add the Eventbrite embed code to your site and ensure it is working. You can see how in[Eventbrite’s guide and troubleshooting steps.](https://www.eventbrite.co.uk/help/en-gb/articles/347218/how-to-sell-eventbrite-tickets-on-your-website-through-an-embedded-checkout/)

We'll cover both methods of using Gleanin with your Eventbrite Embedded Checkout, but it's important to understand the Eventbrite embed code in a little more detail before you get started.

**Understanding the Eventbrite Embed Code**

Both redirecting and triggering the Gleanin pop-up utilize a feature supported by Hubspot’s embed code called a “callback function”; A callback function is a bit of code you supply, which Hubspot will run when a registration is completed. The code Hubspot provides to add their Embedded Checkout already includes a placeholder for this function. In the image below, the callback function is in the red box, and the name of the function is underlined in two places: where it is defined and where it is used. The placeholder callback function logs a message saying “Order complete”.

**![](https://resources.gleanin.com/hs-fs/hubfs/Knowledge%20Base%20Import/V7iKfuNs0Cl13WT86ZfvLClNmAxvx3cDp-epsdrJyiM1LQSU7HKTfE5fMERT3IbhJd3P_l0EXohBSBB5XFrcFtWC2Uou_PUikF96RiXJnHvSZBnirF50vn4RVGubyY_2DemGmZunaaMhwS89nOhG3-1.png?width=602&height=320&name=V7iKfuNs0Cl13WT86ZfvLClNmAxvx3cDp-epsdrJyiM1LQSU7HKTfE5fMERT3IbhJd3P_l0EXohBSBB5XFrcFtWC2Uou_PUikF96RiXJnHvSZBnirF50vn4RVGubyY_2DemGmZunaaMhwS89nOhG3-1.png)**

*The Eventbrite code to embed their checkout code .*

The following steps involve editing the Javascript code shown above. While we hope the changes are clear you may want to get a technical teammate's help

#### **Redirecting when an Eventbrite Embedded Checkout is completed**

Once you have the embedded checkout working you can add the redirect. The code example below shows the change that you need to make to the example callback function you got from Hubspot. The codebelow will take the user to example.com; ***you must change the URL***. The URL can either point to a “thank you” page with Gleanin added as normal or it can point directly to the Gleanin “Sendable link” for an attendee campaign. The “500” in the code below is the number of milliseconds to wait before redirecting the user. If you want to redirect immediately on completion, set it to zero.

```
var exampleCallback = function() {  console.log('Order complete!');  setTimeout(function () {    window.location.assign("https://example.com");  }, 500);};
```

Once you have completed the edit above register for your event using the embedded checkout and confirm the redirect is working as you want.

#### **Triggering the Gleanin Pop-up When an Eventbrite Embedded Checkout is Completed**

First, get the Eventbrite embedded checkout working without adding Gleanin. Once that is working, follow the steps below to add the Gleanin pop-up.

The code required to trigger the Gleanin pop-up is more complex than for the redirect - we are going to add a custom callback function to your Eventbrite embed code and use that to insert the Gleanin pop-up on your page.

1. Create your attendee campaign; a guide on that can be found [here](https://resources.gleanin.com/knowledge/how-do-i-create-an-attendee-campaign?hsLang=en).
2. Go to the **Advocacy tool** in the left-hand menu and choose the setting below: 
     - - **Display the Gleanin advocacy tool** - choose pop-up setup;
           - **Campaign to display** - choose the campaign from the dropdown; please note that only attendee campaigns can be displayed as they are not personalised to an individual;
           - **Advanced reporting** - only available on Pro subscription; more information on the feature can be found [here](https://resources.gleanin.com/knowledge/advanced-reporting-2?hsLang=en);
           - **Custom code options** - select**Eventbrite (embedded checkout only);**
           - Click **Generate code,** and the code you need will appear on the right-hand side. Copy this code.
3. Add the advocacy tool code to your Eventbrite integration code. 
     - Add the code from the previous step to your Eventbrite embed code. It should go immediately before the line beginning “**var exampleCallback = …**”
     - The “Final code” picture at the end of this section highlights the changes to the Evenbrite embed code we made - this may be a useful reference to see where the code should be added.
4. Use the function we just added as the callback

- - Find the third-to-last line in your Eventbrite Embed code (beginning “​​**onOrderComplete: exampleCallback  // Method …**”
    - Replace “exampleCallback” with “insertGleaninFiles”
    - This change is also highlighted in the “Final code” picture below.

![edited\_hubspot\_code\_embed\_popup](https://resources.gleanin.com/hs-fs/hubfs/edited_hubspot_code_embed_popup.png?width=670&height=1098&name=edited_hubspot_code_embed_popup.png)*Final code, with changes highlighted in red*

Once you have completed the edit above, register for your event using the embedded checkout again and confirm it is working as you want.

If you have any feedback on this guide or are are having problems, please get in touch by emailing [hello@gleanin.com](mailto:hello@gleanin.com) - if you can include a description of any problems you’re seeing and a link to the page with your embedded checkout that will help us investigate any issues.

Please ensure that you have set up [conversion tracking](https://resources.gleanin.com/knowledge/new-conversion-tracking?hsLang=en) to effectively monitor conversions for your event.

### **Registration confirmation pages without JavaScript or HTML embed support**

If your registration confirmation page lacks support for external JavaScript, pop-ups, or embedded content, you can still effectively promote your attendee campaign by setting up a dedicated webpage. Follow the steps outlined below to achieve this:

1. Go to the **Run campaign** section in your dashboard and generate the campaign link you want to promote.
   
   ![Screenshot 2025-06-10 at 06.56.29](https://resources.gleanin.com/hs-fs/hubfs/Screenshot%202025-06-10%20at%2006.56.29.png?width=670&height=296&name=Screenshot%202025-06-10%20at%2006.56.29.png)
2. Build a branded webpage and implement the advocacy tool using instructions from the [Standard web page HTML setup](https://resources.gleanin.com/knowledge/adding-share-tool-to-your-confirmation-page#standard) (please remember to implement [conversion tracking](https://resources.gleanin.com/knowledge/new-conversion-tracking?hsLang=en#without-GTM) on this page too).
3. On your registration confirmation page, include a "Share Now" button that hyperlinks to the campaign page you created, allowing users to easily promote your event.

### **Troubleshooting & help**

If you have followed all the necessary steps and ensured that the added code matches exactly what was generated on the platform, and if you have included all components of the code implemented solely on the confirmation page but are still encountering issues, please feel free to contact us at hello@gleanin.com.

We will need to inspect that specific page to verify the code, which typically requires going through the registration flow. For free registrations, we will proceed through the flow; however, a discount code for the paid registrations will be necessary.

- [Asset creation](https://resources.gleanin.com/knowledge/asset-creation?hsLang=en)
- [Upload and data](https://resources.gleanin.com/knowledge/upload-and-data?hsLang=en)
- [Running your campaign](https://resources.gleanin.com/knowledge/running-your-campaign?hsLang=en)
- [Managing your account](https://resources.gleanin.com/knowledge/managing-your-account?hsLang=en)
- [Reporting](https://resources.gleanin.com/knowledge/reporting?hsLang=en)
- [Integrations & advanced features](https://resources.gleanin.com/knowledge/integrations-advanced-features?hsLang=en)
- [Tutorials](https://resources.gleanin.com/knowledge/tutorials?hsLang=en)
- [Common questions](https://resources.gleanin.com/knowledge/common-questions?hsLang=en)
- [Best practice](https://resources.gleanin.com/knowledge/best-practice?hsLang=en)
- [Product updates](https://resources.gleanin.com/knowledge/product-updates?hsLang=en)

[![03\_Gleanin\_Logo\_RGB\_Violet](https://resources.gleanin.com/hs-fs/hubfs/03_Gleanin_Logo_RGB_Violet.png?width=120&height=37&name=03_Gleanin_Logo_RGB_Violet.png "03_Gleanin_Logo_RGB_Violet")](https://gleanin.com/)

Copyright © 2026 Gleanin