Apply tags cloud service to the site

To load the Tag property and its libraries onto the AEM site, the tags cloud service configuration is applied to the site. In the previous step the cloud service configuration is created under the site name folder (WKND Site) so it should be automatically applied, let’s verify it.

  1. From the Navigation menu, select Sites icon.

  2. Select the root page of the AEM Site, and click Properties. Then, navigate to the Advanced tab and under Configuration section, verify that Cloud Configuration value is pointing to your site-specific conf folder.

    Apply Cloud Services Configuration to Site

Verify loading of Tag property on Author and Publish pages

Now it’s time to verify that Tag property and its libraries are loaded onto the AEM site page.

  1. Open your favorite site page in the View as Published mode, in the browser console you should see the log message. It’s the same message from the JavaScript code snippet of the Tag property Rule that is fired when Library Loaded (Page Top) event is triggered.

  2. To verify on Publish, first publish your tags cloud service configuration and open the site page on the Publish instance.

    Tag Property on Author and Publish Pages

Congratulations! You have completed AEM and data collection Tag integration that injects JavaScript code into your AEM site without updating the AEM Project code.