Skip to Content

Add SAP Web Analytics Tracking Snippet

test
0 %
Add SAP Web Analytics Tracking Snippet
Details
// Explore More Tutorials

Add SAP Web Analytics Tracking Snippet

11/04/2019

Add SAP Web Analytics tracking snippet to your website to start usage tracking.

You will learn

  • How to add SAP Web Analytics tracking snippet in your website

A tracking snippet is a code block that is added to your website to allow SAP Web Analytics to start tracking your website. As the website owner, you must add this snippet to the index.html page or the source code of your website home page.

The steps in this tutorial are applicable for trial landscape. Few UI elements of SAP Web Analytics Admin screens need not be used for a trial experience.

For production landscape, please follow the instructions provided in the official help documentation.

Step 1: Copy the tracking snippet
  1. In the left pane of SAP Web Analytics, select Administration and then Site Management.

  2. Click on the Snippet icon for your website.

    Snippet Icon
  3. Copy the code block from the Snippet box.

    Copy Snippet
Log on to answer question
Step 2: Add the tracking snippet to your website
  1. Locate the index.html file in your sample web application.

    Index
  2. Open the file and paste the SAP Web Analytics tracking snippet within the body tag.

    Paste Snippet
  3. Save the file.

  4. Right-click the app folder and select Deploy > Deploy to SAP Cloud Platform.

    Redeploy
  5. After successful deployment, open the application.

  6. You’ll see a consent banner appearing at the top of the page. Click Allow to start tracking.

    Consent Banner
What is a tracking snippet?
×

Next Steps

Back to top