Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

127
Views
Disable Google Analytics during development - Svelte

I've made a page in Svelte and added Google Analytics. I have some mess in my code, because in index.html file I have link <script async src="https://www.googletagmanager.com/gtag/js?id=G-XXXXXXXXXX">

And in main.js file I have code like this

window.dataLayer = window.dataLayer || []

function gtag () {
  window.dataLayer.push(arguments)
}

gtag('js', new Date())
gtag('config', 'G-XXXXXXXXXX')

I want to disable Google Analytics in development mode. I've tried to use window['ga-disable-GA_MEASUREMENT_ID'] = true;, package called gtag-opt-in, but none of this solution helped me.

I'll be grateful for some simple and working solution.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

maybe this is not technical solution on programming side, but you can try to add this extension on your Google Chrome :

https://chrome.google.com/webstore/detail/developer-cookie/lknhpplgahpbindnnocglcjonpahfikn

it will "pause" Google or other analytic tools to counting any data when you activate this extension.

let me know if this can help :)

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!