Comments (17)
Hey, thanks for the bug report! Can you paste the error here?
from ga-lite.
Ah, it was the one in the title I assume
from ga-lite.
Is the site public?
Can you make sure the .js file is served correctly by visiting the direct url?
"Unexpected token <" refers usually to a 404 HTML page being served instead of the correct js file
from ga-lite.
from ga-lite.
from ga-lite.
Yep, .js URL seems to serve a HTML page:
https://wptechguru.com/ga-lite.min.js
So can you check that you have uploaded the file to correct place and that your CDN cache is cleared, routes configured correctly etc.
Somehow you should get the URL to return the correct ga-lite.min.js file :)
from ga-lite.
from ga-lite.
If you're using WordPress, you probably uploaded the ga-lite.min.js file to your server. Did you upload it to the site's root? If so, you probably have an issue in you .htaccess that prevents loading that file directly and you could try uploading it to e.g. your theme folder.
If you uploaded the file to your theme folder, you should use URL like https://wptechguru.com/wp-content/themes/yourtheme/ga-lite.min.js
from ga-lite.
And just to be clear: The issue is that https://wptechguru.com/ga-lite.min.js is not the same as https://raw.githubusercontent.com/jehna/ga-lite/master/dist/ga-lite.min.js
from ga-lite.
from ga-lite.
from ga-lite.
from ga-lite.
from ga-lite.
from ga-lite.
Ahh, now I think I know what happened. You must have downloaded this page:
https://github.com/jehna/ga-lite/blob/master/dist/ga-lite.min.js (html page that shows the file)
...instead of this:
https://raw.githubusercontent.com/jehna/ga-lite/master/dist/ga-lite.min.js (source file)
In the future you can click the Raw
button at the top-right of the page to download the correct file.
from ga-lite.
from ga-lite.
No worries, glad we got the lib working :)
from ga-lite.
Related Issues (20)
- Support for the new Google Analytics 4 tag HOT 9
- Use keepalive flag with fetch
- Capture ga() function calls and re-route them through galite() HOT 5
- Add note to README about using preconnect/preload to improve google page speed HOT 7
- ESM version for modern browsers HOT 10
- Universal Analytics (GA3) and GA4 same time HOT 2
- Illegal Invocation error due to lack of navigator.sendBeacon binding HOT 1
- Self Referral Traffic
- NPM bundle not including commands directory HOT 1
- Customizable endpoint URL and User Language HOT 2
- Instructions on using esm version to readme HOT 4
- SyntaxError Unexpected token = HOT 2
- Yarn run build not working HOT 4
- XMLHttpRequest on main thread is deprecated HOT 2
- Are Conversion Tags Possible & Phone Number Tags HOT 4
- Disableing of ga-lite through cookie HOT 4
- SSR issue introduced HOT 5
- It should be mentioned that ga-lite doesn't use cookies HOT 3
- Stop working on Chrome 85+ for somehow HOT 6
- Test coverage for SSR / node.js compatibility HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ga-lite.