# Skilljar integration with Hubspot

**URL:** <https://community.hubspot.com/t/skilljar-integration-with-hubspot/14493>\
**Category:** APIs & Integrations\
**Tags:** timeline-and-extensions-apis\
**Created:** [May 22, 2019, 10:34pm UTC](https://community.hubspot.com/t/skilljar-integration-with-hubspot/14493 "2019-05-22T22:34:34Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![pschuppe](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/pschuppe/32/30191_2.png) [@pschuppe](https://community.hubspot.com/u/pschuppe)\
**Post date:** [May 22, 2019, 10:34pm UTC](https://community.hubspot.com/t/skilljar-integration-with-hubspot/14493/1 "2019-05-22T22:34:34Z")

</div>

We are trying to connect Skilljar to our Hubspot CRM through the integration, but on testing, we can’t get it setup to track correctly. I have followed these articles, and can’t figure out where we went wrong, or how to fix it;  
[https://support.skilljar.com/hc/en-us/articles/206086056-Sending-Data-to-HubSpot](https://support.skilljar.com/hc/en-us/articles/206086056-Sending-Data-to-HubSpot)  
[https://knowledge.hubspot.com/articles/kcs\_article/reports/how-do-i-create-events-in-hubspot](https://knowledge.hubspot.com/articles/kcs_article/reports/how-do-i-create-events-in-hubspot)  
I have setup custom events to trigger for registration and completion of courses through Skilljar. Registration works OK, but Completion events are triggering automatically on registration, and then firing again on course completion, thus duplicating results.  
I have been through it extensively with Skilljar devs, and they say the javascript is firing correctly on their end, so it’s most likely something on the Hubspot end. Is there someone who might be able to figure out where we went wrong, and how to fix it?

---

<div class="post-metadata">

**Author:** ![IsaacTakushi](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/isaactakushi/32/70387_2.png) [@IsaacTakushi](https://community.hubspot.com/u/IsaacTakushi)\
**Post date:** [May 24, 2019, 3:17pm UTC](https://community.hubspot.com/t/skilljar-integration-with-hubspot/14493/2 "2019-05-24T15:17:51Z")

</div>

Welcome, @pschuppe.

Apologies for the delayed response. I’m happy to help, however I’ll be flying blind without visibility into the _Theming_ tab in your Skilljar instance.

Can you forward me any correspondence you have had with the Skilljar team? I’ll direct message you my email address.

---

<div class="post-metadata">

**Author:** ![pschuppe](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/pschuppe/32/30191_2.png) [@pschuppe](https://community.hubspot.com/u/pschuppe)\
**Post date:** [June 24, 2019, 9:58pm UTC](https://community.hubspot.com/t/skilljar-integration-with-hubspot/14493/3 "2019-06-24T21:58:53Z")

</div>

Thanks Isaac. I have emailed you on 27/05/2019, and again on 17/06/2019. Can you confirm Mmy emails are coming through?

Cheers,

---

<div class="post-metadata">

**Author:** ![IsaacTakushi](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/isaactakushi/32/70387_2.png) [@IsaacTakushi](https://community.hubspot.com/u/IsaacTakushi)\
**Post date:** [June 24, 2019, 11:56pm UTC](https://community.hubspot.com/t/skilljar-integration-with-hubspot/14493/4 "2019-06-24T23:56:26Z")

</div>

Hi, @pschuppe.

I am _so_ sorry! I just found your messages  
 ![16x16_smiley-sad.png.png](https://d2qpr2jzcazej7.cloudfront.net/original/2X/1/16b89523d059319b84f87c1d11eb53d838a4d35d.png)

I will take a closer look tomorrow. Thank you for reaching out!

---

<div class="post-metadata">

**Author:** ![IsaacTakushi](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/isaactakushi/32/70387_2.png) [@IsaacTakushi](https://community.hubspot.com/u/IsaacTakushi)\
**Post date:** [June 25, 2019, 11:38pm UTC](https://community.hubspot.com/t/skilljar-integration-with-hubspot/14493/5 "2019-06-25T23:38:05Z")

</div>

Hi, @pschuppe.

Apologies again for the delayed response.

I’ve reviewed the email chain with Skilljar; thank you for sharing it!

Could you could provide links to a few contacts showing multiple event triggers at the same time? I’d like to dig in a bit further! Feel free to send them to the email thread we have.

---

<div class="post-metadata">

**Author:** ![IsaacTakushi](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/isaactakushi/32/70387_2.png) [@IsaacTakushi](https://community.hubspot.com/u/IsaacTakushi)\
**Post date:** [July 15, 2019, 1:47pm UTC](https://community.hubspot.com/t/skilljar-integration-with-hubspot/14493/6 "2019-07-15T13:47:45Z")

</div>

For posterity, @pschuppe and I have corresponded directly.

We believe these issues are due to nested event JavaScript snippets.

Per [this article](https://knowledge.hubspot.com/articles/kcs_article/events/create-custom-events), JavScript placed in the _Custom JavaScript_ field of a custom [Enterprise] JavaScript event will fire with the HubSpot tracking code.

Thus, if you’re already firing the event with the [Events JavaScript API](https://developers.hubspot.com/docs/methods/tracking_code_api/javascript_events_api), your event may fire _twice_ unless you’ve included extra logic in the _Custom JavaScript_ field. See the screenshot below for reference.

 ![Nested Event Snippet.jpg](https://d2qpr2jzcazej7.cloudfront.net/original/3X/b/b/bba236c8ea204d23778d4b924944d8763a3defaf.jpeg)

I will mark this as the solution for now, however if Peter and I find a different cause, I will update accordingly.
