Open jerry-bennett opened 1 year ago
Tested on: https://preview.brookings.edu/
Use case: Scrolled down to 'Subscribe to the Brookings Brief' and entered in a test email then hit submit.
Status: Looking good, seeing it fire correctly in GTM as well as the data layer push. However, not seeing the value for 'newletter name' or program. @jmoconn do you know of an example where the values would be populated?
@jerry-bennett where did you test this one? Most of the subscribe modules on the site should be passing in at least a name, and a program if applicable (it's not always applicable). But I might have missed adding the name somewhere
@jmoconn I tested this on the main homepage, under the 'subscribe to brookings brief' module. That could be why there's no data for newsletter name or program.
@jerry-bennett ha! I think you found the only subscribe module that I missed in adding names. I've added the name to that one now. This particular newsletter is not associated with a program, which is why no program is populating here. Here's an example that does have a program associated (if you scroll down the page, you'll see a little popup in the lower right hand corner to subscribe to a newsletter).
No worries glad I was able to find a fringe case! I checked again and everything is looking good on the example you provided. Also seeing the newsletter name pop up in the first example now. Moving this to complete.
Sign Up
Javascript Code
Variable Definitions