segmentio / analytics.js-integrations

Monorepo housing Segment's analytics.js integrations
https://segment.com/docs/destinations/
MIT License
119 stars 141 forks source link

[intercom] Synthetic page views in SPA not recorded to Intercom #312

Open SegmentDestinationsBot opened 4 years ago

SegmentDestinationsBot commented 4 years ago

Migrated from #29 by @MrJoy

I have a single-page app, using react-router-redux. In all cases -- both physical and synthetic page loads -- I see requests fired to Segment and to Intercom, as I expect. However, for synthetic page loads, Intercom never seems to notice that the page view happened.

I've got snapshots via Safari's export as cURL for the network requests for both a physical pageview that did get recorded in Intercom, and a synthetic one that did not -- both being for the same URL. I'm a bit hesitant to paste them in since I don't know which magic values are sensitive in them and which are not.

MrJoy commented 4 years ago

I'm no longer using Segment, so you can close this.

jholek commented 4 years ago

@MrJoy what did you end up doing to resolve this? I am running into a similar challenge.

I plan to try using the Intercom API to either reload the Widget, or force an update: https://developers.intercom.com/installing-intercom/docs/intercom-javascript

Wondering if there might be a better solution.

Thanks

MrJoy commented 4 years ago

I don't recall having ever found a resolution for it, unfortunately.