Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix duplicated google analytic page call. #1519

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Fix duplicated google analytic page call. #1519

wants to merge 1 commit into from

Conversation

TerryDevS
Copy link
Contributor

@TerryDevS TerryDevS commented Mar 13, 2023

Description

Trying to eliminate duplicated page call - NOT READY YET
PR is not ready.

Staging Docs

http://kafka-tutorials-staging.s3-website-us-west-2.amazonaws.com/fix-ga/
http://kafka-tutorials-staging.s3-website-us-west-2.amazonaws.com/fix-ga/tutorials

New tutorial checklist

@TerryDevS TerryDevS added the bug Something isn't working label Mar 13, 2023
@TerryDevS TerryDevS requested a review from a team as a code owner March 13, 2023 07:47
@@ -21,7 +21,7 @@
<script>
!function(){var analytics=window.analytics=window.analytics||[];if(!analytics.initialize)if(analytics.invoked)window.console&&console.error&&console.error("Segment snippet included twice.");else{analytics.invoked=!0;analytics.methods=["trackSubmit","trackClick","trackLink","trackForm","pageview","identify","reset","group","track","ready","alias","debug","page","once","off","on","addSourceMiddleware","addIntegrationMiddleware","setAnonymousId","addDestinationMiddleware"];analytics.factory=function(e){return function(){var t=Array.prototype.slice.call(arguments);t.unshift(e);analytics.push(t);return analytics}};for(var e=0;e<analytics.methods.length;e++){var key=analytics.methods[e];analytics[key]=analytics.factory(key)}analytics.load=function(key,e){var t=document.createElement("script");t.type="text/javascript";t.async=!0;t.src="https://cdn.segment.com/analytics.js/v1/" + key + "/analytics.min.js";var n=document.getElementsByTagName("script")[0];n.parentNode.insertBefore(t,n);analytics._loadOptions=e};analytics._writeKey="az10o8Nrc5rgWtPla1QHrg1rTjPdYFV6";analytics.SNIPPET_VERSION="4.13.2";
analytics.load("az10o8Nrc5rgWtPla1QHrg1rTjPdYFV6");
analytics.page();
// analytics.page();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just delete rather than comment out?

Copy link
Contributor

@davetroiano davetroiano left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

change seems good to me - one comment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants