For EUCC, the head snippet should be loaded with librairy

Created on 15 July 2021, almost 3 years ago
Updated 6 July 2023, 12 months ago

Problem/Motivation

Sometimes the relationship between GA and EUCC is a little bit confused.
In EUCC in the section where a cathegory is matched with a file, it calls a JS alter hook and prepares a list of configured file and unset them from Drupal file list.
It gives this list to its javascript and if you accepted one of your cathegory, the file is reloaded by the JS.

The problem is it can only do it with files but not on inline scripts.

Proposed resolution

Instead of loading script with inline mode in HOOK_page_attachments (google_analytics.module) in the head of the web pages, we prefer to load it with a librairy attached file creating a new .js file.

This script create a new JS snippet and insert it to the DOM.

✨ Feature request
Status

Closed: outdated

Version

2.5

Component

Code

Created by

πŸ‡«πŸ‡·France FabienM

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.69.0 2024