Add custom attributes to scripts in order to have more control over their execution

Created on 6 April 2024, 9 months ago
Updated 3 July 2024, 6 months ago

Problem/Motivation

I am implementing the module along with a cookie control system (To comply with European legislation), and I need to control via custom JavaScript when GA4 scripts are executed. For this, the scripts that apply to each category must have custom attributes (In my case they must be type="text/plain" data-category="analytics".)

Proposed resolution

Add to the module a custom attributes configuration to be injected on the script.

✨ Feature request
Status

Fixed

Version

1.1

Component

Code

Created by

πŸ‡ͺπŸ‡ΈSpain enchufe Spain

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024