benjaminhoffman / gatsby-plugin-segment-js

Gatsby plugin for segment.com's analytic.js snippet
https://www.npmjs.com/package/gatsby-plugin-segment-js
MIT License
40 stars 28 forks source link

Delayed loading issue #28

Closed Andrejs1979 closed 4 years ago

Andrejs1979 commented 4 years ago

Page load events are not being sent after enabling delayed loading on Gatsby.

    {
            resolve: `gatsby-plugin-segment-js`,
            options: {
                prodKey: `***************`,
                trackPage: true,
                delayLoad: true,
                delayLoadTime: 1000
            }
        }

"gatsby": "^2.13.31" "gatsby-plugin-segment-js": "^3.1.0"

Thanks!

benjaminhoffman commented 4 years ago

super excited to announce, this issue is fixed! hat tip to @TomPridham. solved via https://github.com/benjaminhoffman/gatsby-plugin-segment-js/pull/30

issue is now closed. please upgrade your version of this plugin to v3.3.0 and definitely let us know if you are still experiencing any issues!

cc @Andrejs1979