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

Created on 6 April 2024, 3 months ago
Updated 19 June 2024, 10 days 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 Madrid

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

Merge Requests

Comments & Activities

Production build 0.69.0 2024