Comments (3)
I'd say put it in the footer (admin -> basic configuration -> footer snippet
).
According to Google, it's best to put it before the closing head tag </head>
, so you make sure it'll load before the visitor leaves the page, but that will also slow down your initial/first page load.
it'll count the visit one way or the other (header or footer won't make any major difference), but the slow down when it's placed within the header is real.
You can read this stackoverflow Q&A and make your own mind 😄
from spirit.
It is all understandable but if I want to follow googles instructions there is not true way to do so. Am I correct?
from spirit.
If you do not have it before the closing </head>
, then I don't believe you will be able to verify you own the domain for other services like Webmaster tools, if you choose to do so via Google Analytics.
It will only look in the <head>
section for the code for verification.
from spirit.
Related Issues (20)
- Method to add fields to Topic or Comment HOT 5
- URL preview HOT 3
- cannot change password when forget HOT 7
- Search function not work HOT 17
- Some tests misusing assertTrue for comparisons
- Security concern HOT 3
- Upgrade Django to the latest 3.2.14 security patch if you can; otherwise this is not usable anymore. HOT 3
- Upgrade to django 4 HOT 1
- spirit-project.com broken HOT 2
- How to make the site available only for logged in users? HOT 1
- Server error when USE_TZ = False HOT 7
- What is the easiest way to put multiple fields on a form on the same line? HOT 1
- Improve settings validations
- Have setting SPIRIT_AUTH_USER_MODEL (defaults to the AUTH_USER_MODEL) but can be overridden HOT 5
- Search always says: There are no search results. HOT 4
- Does every topic have to be subscribed to in order to get notified? HOT 1
- How do I embed a youtube video in a post? HOT 1
- Is it possible to include iframe element in a comment?
- Can you explain the "flags" feature? HOT 1
- Would it be better to index Comment rather than Topic? HOT 5
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 spirit.