Skip to content

Commit c0c4f27

Browse files
authored
Clarify why forward config is used
1 parent 0e3e00d commit c0c4f27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/web-worker-offloading/third-party/google-site-kit.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ function plwwo_google_site_kit_configure( $configuration ): array {
2424
$configuration = (array) $configuration;
2525

2626
$configuration['globalFns'][] = 'gtag'; // Because gtag() is defined in one script and called in another.
27-
$configuration['forward'][] = 'dataLayer.push'; // Because the Partytown integration has this in its example config.
27+
$configuration['forward'][] = 'dataLayer.push'; // See <https://partytown.builder.io/forwarding-event>.
2828

2929
// See <https://github.com/google/site-kit-wp/blob/440dcd6e8289a8776acc60ecb3c13f99bfd0ac5a/includes/Core/Consent_Mode/Consent_Mode.php#L239-L240>.
3030
$configuration['mainWindowAccessors'][] = '_googlesitekitConsentCategoryMap';

0 commit comments

Comments
 (0)