brfcs Posted July 28, 2022 Posted July 28, 2022 I've enabled the new Data Layer feature in adminCP but I can't see any of the data that's supposed to be there as described in DanielF's reply to this thread Â
Randy Calvert Posted July 28, 2022 Posted July 28, 2022 (edited) Are you running at least 4.7? Â If not, you need up upgrade. Do you have GTM enabled? Â (ACP > System > Site Features > Integrations > Google Tag Manager) You need to confirm GTM is enabled and data layer events are being pushed there. Once that's done, you need to go to ACP > System > Settings > Data Layer Your settings should look like: Once enabled, you can check the data layer, by right clicking on your site and viewing source. Â It should look like: /* IPS Configuration */ const IpsDataLayerConfig = {"_events":{"account_login":{"enabled":true,"formatted_name":"account_login"},"account_logout":{"enabled":true,"formatted_name":"account_logout"},"account_register":{"enabled":true,"formatted_name":"account_register"},"content_comment":{"enabled":true,"formatted_name":"content_comment"},"content_create":{"enabled":true,"formatted_name":"content_create"},"content_react":{"enabled":true,"formatted_name":"content_react"},"content_view":{"enabled":true,"formatted_name":"content_view"},"search":{"enabled":true,"formatted_name":"search"}},"_properties":{"content_container_url":{"event_keys":["content_*","filter_*","sort","file_download"],"pii":false,"formatted_name":"content_container_url","enabled":true,"type":"string","page_level":true},"content_id":{"event_keys":["content_*","file_download"],"pii":false,"formatted_name":"content_id","enabled":true,"type":"number","page_level":true},"author_name":{"event_keys":["content_*","social_reply","file_download"],"pii":true,"formatted_name":"author_name","enabled":true,"type":"string","page_level":true},"content_title":{"event_keys":["content_*","file_download"],"pii":true,"formatted_name":"content_title","enabled":true,"type":"string","page_level":true},"content_url":{"event_keys":["content_*","file_download"],"pii":false,"formatted_name":"content_url","enabled":true,"type":"string","page_level":true},"author_id":{"event_keys":["content_*","social_reply","file_download"],"pii":true,"formatted_name":"author_id","enabled":true,"type":"number | string","replace_with_sso":true,"page_level":true},"comment_type":{"event_keys":["content_comment","content_react","content_quote"],"pii":false,"formatted_name":"comment_type","enabled":true,"type":"string","page_level":false},"comment_url":{"event_keys":["content_comment","content_react","content_quote"],"pii":false,"formatted_name":"comment_url","enabled":true,"type":"string","page_level":false},"community_area":{"event_keys":["filter_*","sort"],"pii":false,"formatted_name":"community_area","enabled":true,"type":"string","page_level":true},"content_age":{"event_keys":["content_*","file_download"],"pii":false,"formatted_name":"content_age","enabled":true,"type":"number","page_level":true},"content_area":{"event_keys":["content_*","filter_*","sort","file_download"],"pii":false,"formatted_name":"content_area","enabled":true,"type":"string","page_level":true},"content_container_id":{"event_keys":["content_*","filter_*","sort","file_download"],"pii":false,"formatted_name":"content_container_id","enabled":true,"type":"number","page_level":true},"content_container_name":{"event_keys":["content_*","filter_*","sort","file_download"],"pii":false,"formatted_name":"content_container_name","enabled":true,"type":"string","page_level":true},"content_container_path":{"event_keys":["content_*"],"pii":false,"formatted_name":"content_container_path","enabled":false,"type":"array","page_level":true,"default":[]},"content_container_type":{"event_keys":["content_*","filter_*","sort","file_download"],"pii":false,"formatted_name":"content_container_type","enabled":true,"type":"string","page_level":true},"content_type":{"event_keys":["content_*","filter_*","sort","file_download"],"pii":false,"formatted_name":"content_type","enabled":true,"type":"string","page_level":true},"file_name":{"event_keys":["file_download"],"pii":false,"formatted_name":"file_name","enabled":true,"type":"string","page_level":false},"ips_time":{"event_keys":["*"],"pii":false,"formatted_name":"ips_time","enabled":true,"type":"number","page_level":true},"page_number":{"event_keys":["content_view","query","filter","sort"],"pii":false,"formatted_name":"page_number","enabled":true,"type":"number","page_level":true},"comment_id":{"event_keys":["content_comment","content_react","content_quote"],"pii":false,"formatted_name":"comment_id","enabled":true,"type":"number","page_level":false},"logged_in":{"event_keys":[],"pii":false,"formatted_name":"logged_in","enabled":true,"type":"number","page_level":true},"logged_in_time":{"event_keys":[],"pii":false,"formatted_name":"logged_in_time","enabled":true,"type":"number","page_level":true},"member_group":{"event_keys":[],"pii":false,"formatted_name":"member_group","enabled":true,"type":"string","page_level":true},"member_group_id":{"event_keys":[],"pii":false,"formatted_name":"member_group_id","enabled":true,"type":"number","page_level":true},"member_id":{"event_keys":[],"pii":true,"formatted_name":"member_id","enabled":true,"type":"number | string","page_level":true,"replace_with_sso":true},"member_name":{"event_keys":[],"pii":true,"formatted_name":"member_name","enabled":true,"type":"string","page_level":true},"profile_group":{"event_keys":["social_*"],"pii":false,"formatted_name":"profile_group","enabled":true,"type":"string","page_level":true},"profile_group_id":{"event_keys":["social_*"],"pii":false,"formatted_name":"profile_group_id","enabled":true,"type":"number","page_level":true},"profile_id":{"event_keys":["social_*"],"pii":true,"formatted_name":"profile_id","enabled":true,"type":"number | string","page_level":true,"replace_with_sso":true},"profile_name":{"event_keys":["social_*"],"pii":true,"formatted_name":"profile_name","enabled":true,"type":"string","page_level":true},"reaction_type":{"event_keys":["content_react"],"pii":false,"formatted_name":"reaction_type","enabled":true,"type":"string","page_level":false},"sort_by":{"event_keys":["*sort"],"pii":false,"formatted_name":"sort_by","enabled":true,"type":"string","page_level":true},"sort_direction":{"event_keys":["*sort"],"pii":false,"formatted_name":"sort_direction","enabled":true,"type":"string","page_level":true},"view_location":{"event_keys":["*_view"],"pii":false,"formatted_name":"view_location","enabled":true,"type":"string","page_level":true,"default":"page"},"query":{"event_keys":["search"],"pii":false,"formatted_name":"query","enabled":true,"type":"string","page_level":false},"filter_title":{"event_keys":["filter_*"],"pii":false,"formatted_name":"filter_title","enabled":true,"type":"string","page_level":false},"ips_key":{"event_keys":["*"],"pii":false,"formatted_name":"ips_key","enabled":false,"type":"string","page_level":true}},"_pii":true,"_pii_groups":[["author_id","author_name"],["member_id","member_name"],["profile_id","profile_name"]]}; /* IPS Context */ const IpsDataLayerContext = {"content_container_url":null,"content_id":null,"author_name":null,"content_title":null,"content_url":null,"author_id":null,"community_area":"Forums","content_age":null,"content_area":"Forums","content_container_id":null,"content_container_name":null,"content_container_type":null,"content_type":null,"ips_time":null,"page_number":null,"logged_in":1,"logged_in_time":26100,"member_group":"Administrators","member_group_id":4,"member_id":3085,"member_name":"RadioRob","profile_group":null,"profile_group_id":null,"profile_id":null,"profile_name":null,"sort_by":null,"sort_direction":null,"view_location":"page"}; /* IPS Events */ const IpsDataLayerEvents = []; If that is in the source code, the data layer work is injected. Â It's then going to be on you to go into your Google Tag Manager and define each of those data layer options as events, tags, triggers, etc. Â IPS does not do all of the extra setup that needs to be manually defined in your Google Tag Manager account. Â That has to be done by you. Â They only expose the data to Google. Â You have to tell Google what to do with it and what to actually push to Google Analytics, etc. Â Edited July 28, 2022 by Randy Calvert My Sharona and brfcs 2
Marc Posted July 29, 2022 Posted July 29, 2022 This is correct. If you are then not seeing anything, please let us know
brfcs Posted July 29, 2022 Author Posted July 29, 2022 @Randy Calvert We are on 4.7 and the data layer config is switched on as per your 2nd image. GTM is set up & working for the site, however now using the GTM extension, we enabled it for our site before that extension was available (or certainly before we noticed it, how old is it?) Do you need to enable GTM via the extension rather than manually adding the js snippets?
Randy Calvert Posted July 29, 2022 Posted July 29, 2022 I would highly recommend using the default GTM integration than manual placement of the GTM snippets within your skin. #1 - It's more work to maintain in between upgrades as you have to track what IPS is changing in the global template vs your own changes. #2 - If you have multiple themes, you're exponentially increasing your work. #3 - Advanced integrations are not tested against manual placement.  I would highly recommend setting up the configuration as per the first image as well.  Otherwise there is nothing there to tell IPB what to actually push into that data layer you have defined in the second screenshot. Â
brfcs Posted July 29, 2022 Author Posted July 29, 2022 Yeah, I think I'll switch over to the default, like I said, I don't think it was an option when we added it originally.
Marc Posted August 1, 2022 Posted August 1, 2022 Hope you manage to get that set up 🙂 As mentioned, its always best to use the built in tools to do the job rather than manually editing. But I should also add, its always worth looking through the release notes on new releases. You can find them in the following location  The reason I mention this is you would have likely already changed this if you had taken a look at those, and there might be other items we have added that are of use to you, so its always worth a look. We do often see this and also people using 3rd party applications they installed a long time ago that they can do with the core platform.
Recommended Posts