# Analytics.js integration

**URL:** <https://community.hubspot.com/t/analytics-js-integration/106045>\
**Category:** APIs & Integrations\
**Tags:** developer-tools, events\
**Created:** [April 29, 2024, 6:59pm UTC](https://community.hubspot.com/t/analytics-js-integration/106045 "2024-04-29T18:59:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![EVudhiwat](https://avatars.discourse-cdn.com/v4/letter/e/59ef9b/32.png) [@EVudhiwat](https://community.hubspot.com/u/EVudhiwat)\
**Post date:** [April 29, 2024, 6:59pm UTC](https://community.hubspot.com/t/analytics-js-integration/106045/1 "2024-04-29T18:59:27Z")

</div>

Hi! Our company uses analytics.js as a way to send events from our website to multiple platforms (ie Google Analytics, MixPanel, etc.). We’re hoping to connect this to HubSpot as well to track events and use these as triggers for marketing communications.

The issue we’re encountering is that the company’s analytics.js is from 2018. It was not updated to a newer version. We’re hoping to continue using our existing platform and sending data as-is, but our engineer is running into problems when trying to connect the platforms. It seems that he is being asked to update to analytics next ([GitHub - segmentio/analytics-next: Segment Analytics for Javascript · GitHub](https://github.com/segmentio/analytics-next/?tab=readme-ov-file)) or David Wells ([GitHub - DavidWells/analytics: Lightweight analytics abstraction layer for tracking page views, custom events, & identifying visitors · GitHub](https://github.com/DavidWells/analytics)). We are currently using [GitHub - segmentio/analytics.js-integrations: Monorepo housing Segment's analytics.js integrations · GitHub](https://github.com/segmentio/analytics.js-integrations).

Does anyone have experience with this? Or perhaps would be able to provide some support for our engineer?

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [April 30, 2024, 9:00pm UTC](https://community.hubspot.com/t/analytics-js-integration/106045/2 "2024-04-30T21:00:29Z")

</div>

Hey, @EVudhiwat 👋 Thanks for your question. Your dev may need to reach out to Segment support for specific help. We’ll leave this thread open in case there are any community members who have direct experience.

Best,

Jaycee
