resource, a new header value containing region “group” info has been added. We use this group information to process a JSON payload that replaces HTML targets with new info.
Steps
Copy/Paste the CUSTOM JS code below into the GAM CustomJS field.
Modify the JSON payload by entering your target (i.e. .summary) and the HTML you’d like to insert into this target. You may add more than one target per group:
WARNING: The software will replace ALL of your chosen targets. If you need to select only one of your targets, you will need to target your elements finitely.
Adding The Sugar
Because you’re replacing the contents of an element, if you don’t add the “sugar” you will see an annoying pop-in your replaced text. To deal with that, follow these steps:
Copy/Paste the CUSTOM CSS below into the GAM CustomCSS field.
Modify the SUGAR 1 entry to point to your content targets.
TIP: You can also modify the styling of your geo groups by using the SUGAR 2 method.
Recipe
CUSTOM JS
/* If not working, use this code below and re-test */