Submit a ticket My Tickets
Welcome
Login  Sign up
Open navigation

How to Integrate HubSpot with your LearnWorlds School using the Tracking Code

Availability
Starter
Pro Trainer
Learning Center
High Volume & Corporate


HubSpot is inbound marketing and sales software that helps companies attract visitors, convert leads, and attract customers. It includes all the tools needed for inbound marketing: email, sites, SEO, Marketing Automation, Landing Pages, Analytics, Social Media, Blogging, and more. 


While full native integration is only available in the Learning Center and High Volume plans, all plans—including Starter and Pro—can integrate HubSpot using the tracking code.


The HubSpot tracking code allows the automated tracking of visitors, page views, and events on your website. It can also monitor the Contact/Lead Capture forms and collect the submitted data to create new Contacts in HubSpot. 


For more information on what the HubSpot tracking code can help you achieve, you can read these articles from HubSpot: 


If you want to learn more about our HubSpot native integration, check out this article.

In this article, we will go through using the HubSpot tracking code to connect your LearnWorlds school with HubSpot.

Install the Tracking Code into LearnWorlds

1. Go to your LearnWorlds school, navigate to Settings  Integrations CRM tools, and scroll down to the Enable Tracking Code option.


2. Paste the Tracking Code ID.


To find your HubSpot Tracking Code ID, follow the steps in this article or open your HubSpot dashboard and copy the numeric value from the URL—this number is your unique HubSpot ID.


3. Click on Save.

After adding the embed code, the system will keep only the field that is required to connect your school with your HubSpot account.


What information is sent over to HubSpot?


The tracking code can be used to update contacts’ data in HubSpot. You can always prevent contact properties from being updated by the tracking code API by switching off the Allow tracked events to update contact properties option in your Advanced Tracking settings.


If you activated HubSpot only by activating and injecting the tracking code, then LearnWorlds automatically sends the following custom properties to HubSpot:


1. learnworlds_username: the username of the user

2. learnworlds_user_id: a unique string that acts as an identifier for each user

3. learnworlds_optin: a string (of single-line text field type) denoting whether the user has opted for receiving promotional material from the client. The property can get one of the following values:

  • -, User did not opt in or out (default)
  • YES, User opted in
  • NO, User opted out

4. User's email.

5. First and Last name - if they have been added in the lead capture form.

 

The HubSpot Integration with Tracking Code only captures email addresses submitted through email grabbers embedded on your website.


Creating HubSpot Custom Properties


To have the usernames and IDs of your School's users saved as contact properties in HubSpot, you need to create custom contact properties to receive these values. Here’s how:


1. Navigate from your Admin menu to Contacts and click on Actions Edit properties.

2. Click on Create Property.

3. There, you can add a new custom property by setting the Label field with the internal ID learnworlds_username. Choose the Object Type and Group, and click on Next.

4. Choose the field type and click on Create.

You can follow the same procedure to add the user ID custom property by adding a new custom property and setting the Label field with the internal ID learnworlds_user_id, or the opt-in custom property by adding a new custom property and setting the Label field with the internal ID learnworlds_optin.


You can find more information on how to create a new property here.


5. Once you create the custom property, navigate back to Contacts,  click on Table actions  Edit columns.

6. Search by using the keyword learnworlds in the search bar, select the respective properties, and click on Apply.


If chatflows are enabled in your HubSpot account and the tracking code is activated, it will also appear in your LearnWorlds school.

Hubspot Experience

You can watch how a new user is created in LearnWorlds and where you track this data in HubSpot.


Notes: 

  • If you have enabled the GDPR toolkit, your users will need to accept the targeting/ marketing cookies for them to be added to your HubSpot contacts upon Sign-Up.
  • When modifying an existing user's account—such as updating their username—the affected user must log in at least once after the change. This step is necessary for the updated information to sync with your HubSpot contacts.
  • If you're using HubSpot Properties that sync data from multiple platforms, it's strongly advised to create distinct properties for mapping LearnWorlds data. This separation helps prevent data from other platforms from overwriting information sourced through LearnWorlds.

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.