Enabling Ping

Prev Next

Ping must be enabled to begin collecting data. Ping collects data from two types of sources:

  • Internal: Collected when Ping is activated on all Slate pages, including events and applications

  • External: Collected when Ping code is placed in a webpage's HTML

📝 Note

Slate forms embedded on a webpage are considered external.

Enabling Ping on all Slate pages

To enable Ping on all Slate pages:

  1. Go to Database → Configuration Keys.

  2. Select Embed Ping on Slate Pages.

  3. From the dropdown, select Enabled.

  4. Click Save.

Embed Ping on Slate Pages.png

Embedding Ping tracking on any external website

To enable Ping tracking on external sources, including embedded Slate forms:

  1. Go to Database → Ping.

  2. The Ping page displays a snippet of JavaScript. Copy the snippet.

    Copy Ping JavaScript snippet.png

  3. In your external webpage or template, open the HTML editor.

  4. Paste the complete snippet between the <head> and </head> tags, immediately before </head>.

  5. Save your change in the HTML editor.

📝 Note

The Ping tracking code must be placed on each and every web page on which you want to track accesses.

Position of the JavaScript snippet

Place the snippet inside the <head> element of your webpage. The example below shows its position immediately before the closing </head> tag. Replace the example <script> element with the complete snippet copied from Database → Ping in your Slate database. The domain slate.example.edu is a placeholder.

<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <title>Example webpage</title>
  <script async="async" src="https://slate.example.edu/ping">/**/</script>
</head>
<body>
  <h1>Example webpage</h1>
</body>
</html>

📖 Further Reading: Ping Overview

Still looking for what you need?