add GA snippet from JS

Created on 23 March 2020, over 4 years ago
Updated 6 July 2023, over 1 year ago

Suggestion:

moved the part of adding the GA snippet to JS.
In the attached page hook moved the snipped the the drupalSettings and in the google_analytics.js file in the doc ready adding the snippet back to the dom.

This is the particularly useful for the EU cookie compliance module.

πŸ“Œ Task
Status

Closed: outdated

Version

2.4

Component

Code

Created by

πŸ‡§πŸ‡ͺBelgium mojo4444

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States japerry KVUO

    With the sunset of legacy google analytics, the 8.x-2.x module is now unsupported. If this is still an issue with the 4.x version, please file a new issue in the queue.

Production build 0.71.5 2024