TanmayThakur
TanmayThakur

Reputation: 63

Is there any CKAN extension for Google Tag Manager?

I want to add my Google Tag Manager script to my CKAN-2.4 instance. I can manually add it by changing the template, but I want to keep it separate from CKAN code, so I was thinking separate extension is better. I searched for the extension, but I did not find anything. Can anybody tell me better approach of adding Google Tag Manager script (extension, changing template or anything else)?

Upvotes: 0

Views: 131

Answers (1)

jnatividad
jnatividad

Reputation: 151

Extension is the way to go, and it's easy to start.

Would be awesome if you add schema.org tags for dataset and datacatalog and DataDownload.

And once you open-source it ;), will be sure to catalog it on extensions.ckan.org.

Making judicious use of {% ckan_extends %} and {% block %} should allow you to create a Google Tag Manager extension that's readily usable in other CKAN instances.

Upvotes: 2

Related Questions