Developer forum

Forum » Dynamicweb 10 » Google Site Verification

Google Site Verification

NC
NC
Reply

I'm looking for the right place to add the Google Site Verification.

I can find it in Swiftv1 - but not in swift v2.
Or is this  a hardcoded thing to do in the master now?  

Thanx in advance
..NC


Replies

 
Rasmus Sanggaard Dynamicweb Employee
Rasmus Sanggaard
Reply

Hi NC,

 

 

I would recommend just doing it via GTM: https://support.google.com/webmasters/answer/9008080?hl=en#google_tag_manager_verification

 

BR Rasmus Sanggaard

 
NC
NC
Reply

Thanx Rasmus

I'll ask the client if it's the same person who has GTM access.
If not, I'll have to make a custem master-template...

..NC

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi NC,

I believe that you can also use the CustomHeadInclude option on the website. It allows you to add any customisation in the head without customising the Master.

Adrian

 
NC
NC
Reply

Hi Adrian,

that's true. But I found this in the master... 

Pageview.Meta.AddTag("google-site-verification", Model.Area?.Item?.GetString("GoogleSiteVerification"));

There must be a input somewhere for this in Swift v2?

..NC

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

Yes - it should be here:

But I can see that the item type definition might be missing the information here:

 
NC
NC
Reply

Thanx Nicolai...

In this case I'll have to create this field myself? Can I do this without trouble?
And will it be added in newer versions?

This version is 10.16.10

..NC

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

Dude - this is standard in Swift 2 (not a DW10 feature, but a Swift feature):

The field in the item type: 
https://github.com/dynamicweb/Swift/blob/main/Files/System/Items/ItemType_Swift-v2_Master.xml#L73

The field used in the template:
http://github.com/dynamicweb/Swift/blob/main/Files/Templates/Designs/Swift-v2/Swift-v2_Master.cshtml#L11

 

You must be logged in to post in the forum