Creating a Service with a Generic Snippet

For the basic configuration:

  1. Open the Tools console.

  2. From the left pane, expand Cloud Services Configurations.

  3. Double-click Generic Analytics Snippet to open the page:

    Generic Analytics Snippet

  4. Click + to add a new configuration using the dialog box. At a minimum, assign a name, for example, Google Analytics:

    Create configuration

  5. Click Create, the snippet dialog opens immediately - paste the appropriate JavaScript snippet into the field:

    Editing the component

  6. Click OK to save.

Using your new Service on Pages

Having created the service configuration, you must configure the required pages to use it:

  1. Navigate to the page.

  2. Open the Page Properties from sidekick, then the Cloud Services tab.

  3. Click Add Service, then select the required service. For example, the Generic Analytics Snippet:

    Adding a cloud service

  4. Click OK to save.

  5. You are returned to the Cloud Services tab. The Generic Analytics Snippet is now listed with the message Configuration reference missing. Use the drop-down list to select your specific service instance. For example, google-analytics:

    Adding cloud service configuration

  6. Click OK to save.

    The snippet can now be seen if you view the Page Source for the page.

    After an amount of time has elapsed, you can view the collected statistics.

    NOTE
    If the configuration is attached to a page that has child pages, the service is inherited by those as well.

Experience Manager


Connect with Experience League at Summit!

Get front-row access to top sessions, hands-on activities, and networking—wherever you are!

Learn more