Closed Vadman97 closed 1 month ago
To disable analytics data being sent to HubSpot and RudderStack in a self-hosted deploy, follow these steps:
rudder-initialize.js
: Comment out or remove the RudderStack initialization code.// window.rudderanalytics = await import('rudder-sdk-js')
// rudderanalytics.load(
// '2HMp4bSqggu0Z8W1cn6G5nydUxg',
// 'https://highlightwjh.dataplane.rudderstack.com',
// {
// integrations: { All: true }, // load call options
// },
// )
analytics.ts
: Comment out or remove the RudderStack and HubSpot tracking code in the initialize
, track
, identify
, and page
functions.const initialize = () => {
if (rudderstackInitialized) {
console.warn('Rudderstack already initialized.')
return
}
rudderstackInitialized = true
// rudderanalytics.load(
// '2HMp4bSqggu0Z8W1cn6G5nydUxg',
// 'https://highlightwjh.dataplane.rudderstack.com',
// { integrations: { All: true } },
// )
}
const track = (event: string, metadata?: rudderanalytics.apiObject) => {
// (window._hsq = window._hsq || []).push([
// 'trackCustomBehavioralEvent',
// {
// name: event,
// properties: metadata,
// },
// ])
// H.track(event, metadata as Metadata)
// rudderanalytics.track(event, metadata)
}
const identify = (email: string, traits?: rudderanalytics.apiObject) => {
// const hsq = (window._hsq = window._hsq || [])
// hsq.push([
// 'identify',
// {
// email,
// ...traits,
// },
// ])
// hsq.push(['trackPageView'])
// H.identify(email, traits as Metadata)
// rudderanalytics.identify(email, traits)
}
const page = (name: string, properties?: rudderanalytics.apiObject) => {
// rudderanalytics.page(name, properties)
}
telemetry.md
and any relevant sections in index.md
./highlight.io/scripts/rudder-initialize.js /frontend/src/util/analytics.ts /docs-content/general/4_company/open-source/hosting /docs-content/getting-started/self-host/integrations/index.md
/bounty $50
we should disable all hubspot and rudderstack frontend calls in self-hosted hobby deploys, and also validate that no other frontend analytics data is sent with the self-hosted version (ie any other track/page/identify calls leaving the self hosted stack)
Payment will be awarded to the first person to successfully merge a PR meeting all requirements. In the event that multiple PRs are submitted for the issue, we will award payment to the highest quality PR (the one that has cleanest code, best test coverage, most thorough, etc.).
/attempt #8680
with your implementation plan/claim #8680
in the PR body to claim the bountyThank you for contributing to highlight/highlight!
Add a bounty • Share on socials
Attempt | Started (GMT+0) | Solution |
---|---|---|
🔴 @jemiluv8 | May 28, 2024, 10:18:04 PM | WIP |
🟢 @ezhil56x | May 30, 2024, 8:44:27 PM | #8700 |
/attempt #8680
Algora profile | Completed bounties | Tech | Active attempts | Options |
---|---|---|---|---|
@jemiluv8 | 8 highlight bounties + 21 bounties from 9 projects |
TypeScript, HTML, Rust |
Cancel attempt |
/attempt #8680
Algora profile | Completed bounties | Tech | Active attempts | Options |
---|---|---|---|---|
@ezhil56x | 29 bounties from 11 projects | JavaScript, TypeScript, Rust & more |
Cancel attempt |
💡 @ezhil56x submitted a pull request that claims the bounty. You can visit your bounty board to reward.
🎉🎈 @ezhil56x has been awarded $50! 🎈🎊
HIG-4702 self hosted deploy sends analytics data to hubspot / rudderstack