Fix the YouTube tracking setting

Created on 25 June 2024, 10 months ago
Updated 9 July 2024, 9 months ago

According to the DAP documentation YouTube tracking via the yt parameter is disabled by default. But the module gives the yt parameter a default of true. usfedgov_google_analytics_library_info_build() then strips any parameters with the defaults out of the query string. In other words, a yt set to true gets removed. So if someone wants YouTube tracking to be enabled, then they have no way to turn it on.

This same problem may apply to other settings with defaults of true. I haven't checked yet.

πŸ› Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States dcam

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