Search the Omeda Knowledge Base

< All Topics

Olytics Product Outline

Omeda offers a web analytic service called olytics that allows you to track both known customer visits as well as anonymous visits across your website and subscription pages. By adding a small piece of JavaScript and defining a behavioral taxonomy by either tagging your site at the page level or by utilizing existing/new HTML meta tags you not only track your visitors across your site(s) but also gather important information about the visitors such as device and location. This behavioral data will feed back to Omeda and be stored in your database which will allow you to use Audience BuilderAudience SearchEmail Builder and our Web Behavior reporting suite to more accurately segment and market to your customer base.

olytics script

You should include the olytics.css import:

<link rel="stylesheet" href="" />

You will also need the olytics javascript import below.

<script type="text/javascript">
// olytics 3.0
window.olytics||(window.olytics=[]),window.olytics.methods=["fire","confirm"],window.olytics.factory=function(i){return function(){var;return t.unshift(i),window.olytics.push(t),window.olytics}};for(var i=0;i<window.olytics.methods.length;i++){var method=window.olytics.methods[i];window.olytics[method]=window.olytics.factory(method)}olytics.load=function(i){if(!document.getElementById("olyticsImport")){window.a=window.olytics;var t=document.createElement("script");t.async=!0,"olyticsImport",t.type="text/javascript";var o="";void 0!==i&&void 0!==i.oid&&(o=i.oid),t.setAttribute("data-oid",o),t.src="",t.addEventListener("load",function(t){for(olytics.initialize({Olytics:i});window.a.length>0;){var o=window.a.shift(),s=o.shift();olytics[s]&&olytics[s].apply(olytics,o)}},!1);var s=document.getElementsByTagName("script")[0];s.parentNode.insertBefore(t,s)}},olytics.load({oid:"YOUR-OLYTICS-KEY"});

Update your Google Analytics reports

Once you have adopted olytics, you will start to see some or all of the following query parameters on the urls in your GA reports:

  • oly_anon_id
  • oly_enc_id

These parameters can be excluded from your Google Analytics reporting by navigating to Admin > View Settings > Exclude Query Parameters

Clear instructions are available here:

Some of the benefits of gathering this behavioral data for your website visitors includes the ability to…

  • Target your customer base
    • as granular as a per-topic or as wide as a category
    • gives you the ability to ask questions like “How many of my customers visited a ‘Widgets Whitepaper’ page on my website”?
  • Identify types of visitors
    • power users based on visit activity and recency
    • ones who abandon your subscription page
  • Engage both your known and anonymous users
    • send email deployments to known users with topics of interest tailored to them
    • setup conferences in cities where your known and anonymous visitors are generally located
  • View reports
    • gain insight on cross-topic visitor activity
    • pathing which allows you to see how your users are getting to your site

What Does It Capture?

  • Your defined behavioral taxonomy
  • IP Address
  • Browser (Chrome, Firefox, IE, etc)
  • Device (Windows 7, iOS 8, Android)
  • Device Type (Personal computer, Smartphone, Tablet, Smart TV)
  • Referring Domain/URL (, etc)
  • Visitor Location based on IP Address – when available.

Easy Setup

  • Create a Behavior. Generally you will have 1 behavior per website. Examples:
    • – Page Visit
    • – Page Visit
  • Define a Taxonomy – or use an existing one from you current HTML meta tags
    • Standard olytics Fields:
      • category – ‘News, Flowers’,
      • tag – ‘New Widgets Ready to Hit the Market, Flowers for a August Wedding’
    • Custom fields (replace section with whatever you like):
      • section – ‘Paid Section, Free Section’
  • Paste scripts into your web pages
  • Start collecting data

Tagging Your Content

  • category
    • General category for your page
    • Recommended no more than 5 categories per page
    • Examples:
      • Flowers
      • Tech News, News, Widgets
      • Widgets
  • tag
    • Any term(s) you want to tag your page with
    • Recommended no more than 5 tags per page
    • More specific than a category
    • Examples:
      • Best Flowers for a August Wedding
      • iWatch Release Date
      • Widget Sales are Up
      • Bears, Blackhawks, Bulls
  • Any field that makes sense to you (section / subsection used as an example)
    • Any term(s) you want to assign to that field
    • Examples:
      • section – ‘Paid Section, Free Section’
      • subsection – ‘Marketing Paid, Advertisement Paid’


Custom Javascript

  • Specific Script code on each page
  • Example:
    behaviorId: 'AAABBBCCCDDDEEE',      // Encrypted Behavior ID - supplied by Omeda
    category: 'Flowers,Orchids',        // Open Text - Comma-delimited. Limit of 5 values recommended.
    tag: 'Greenhouses,Potting,Watering', // Open Text - Comma-delimited. Limit of 5 values recommended.
    section: 'Marketing Paid' // custom field, Open Text - Comma-delimited. Limit of 5 values recommended.
  • Advantages
    • Can track more than just “Page Hits”
    • Can attach to any DOM event
      • onClick
      • onFocus
      • onSearch
  • Disadvantages
    • Custom code on every page
    • Requires Web Developer to implement

Using html <meta> tags

  • Prerequisites
    • Your web site must have the ability to add a common script to all pages (generally this can be done in a common header or footer)
    • Your current CMS systems allow <meta> tag maintenance
  • Example:
<meta name="olyticsCategory" content="Flowers,Orchids" > 
<meta name="olyticsTag" content="Greenhouses,Potting,Watering" > 
<meta name="customField" content="CustomField1,CustomField2" > 
  • Only the <meta> tags for your page would need to be maintained
  • Advantages
    • Once script is implemented, there is no need for technical person going forward
    • Non technical staff can maintain the category and tag attributes for a page
  • Disadvantages
    • Can only track “Page Hits”

Customer Tracking


  • Anonymous Customers
    • No personal information – only visit information according to your taxonomy.
    • Stored as anonymous in your database
    • NOTE: Anonymous Customers without a visit in the last 6 months are deactivated automatically.
  • Known Customers
    • User visits with special parameters: oly_enc_id={encrypted_customer_id}
    • Example:
    • Only has to be done once, cookie is updated with Omeda’s Customer ID (customer_id)
    • If an Anonymous cookie already exists for that person, data from Anonymous customer is merged into Known customer

Tracking customers across domains

Example: If a customer is browsing my site and I have a link that takes them to a registration page at

Since cookies are domain-specific, if customers are browsing across domains, the links need to be appended with the Anonymous cookie id (oly_anon_id) and the Known omeda customer id (oly_enc_id).

My link on would look something like this: So when a customer clicks on the link to go to the signup page, the script at reads the oly_enc_id and oly_anon_id – appending the first 2 to the cookie.

Note: make sure if you are appending oly_enc_id or oly_anon_id to a url, that you never pass oly_enc_id=null or oly_anon_id=null. This creates problems identifying your customer.

Identifying and tracking known customers on your own Login or Signup Forms

Rather than pass Email Builder passing the oly_enc_id, you may also manually fire the following javascript function to confirm the identity of the visitor:


This will append the omeda encrypted-customer-id to the cookie, in the same way passing the &oly_enc_id= param does.

This can be very useful in conjunction with a login or signup form on your site and our API Suite.

  • Signup Form Example:
  1. User visits your website and browses some pages anonymously.
  2. User signs up for your website
  3. When the user signs up – you can call the Save Customer and Order API and then the Run Processor API.
  4. Now that the customer has been saved and processed to your omeda database, you can use the encrypted customer id returned from the Run Processor API and fire the olytics.confirm javascript function when the confirmation page loads, passing in the encrypted-customer-id.
  5. Your known customer will now be tracked as they browse your site.
  • Login Example:
  1. User visits your website and browses some pages anonymously.
  2. User decides to login to your site with their credentials
  3. When the user logs in – you can call the Validate Authentication APICustomer Lookup By Email or Customer Lookup Service By External ID to retrieve the encrypted-customer-id.
  4. Now you can use fire the olytics.confirm javascript function when the confirmation page loads, passing in the encrypted-customer-id.
  5. Your known customer will now be tracked as they browse your site.

Email Builder Integration 

  • Attaches ?oly_enc_id= parameter to all links, confirming the identify of your Customer.

olytics In Audience Builder

  • Ability to Query Anonymous and Known
  • Ability to Query category and tag
  • Query By Date
  • Query By Action Count
  • Query By Operating System, Device Type, Browser, and Referring Domain

Testing Your olytics Setup!

  • Verifying your Anonymous visits are being recorded
  1. Visit some of your pages in a browser of your choice.
  2. Grab the value from the ‘oly_anon_id’ cookie for your domain. Make sure to remove the %22 from the ends.
  1. Visit Audience Search.
  2. Select advanced search.
  3. enter the oly_anon_id into the ‘Alternate ID’ field and search.
  4. Select the customer that is returned
  5. In the olytics section you can view your anonymous tag and category visit information: 
  • Verifying your Known customer visits are being recorded
  1. Visit some of your pages in a browser of your choice.
  2. Grab your encrypted customer id from Audience Search.
  3. Append &oly_enc_id={encrypted-customer-id} to your website url for a page that is using olytics.
  4. Go back to the Audience Search search screen.
  5. Search for your customer again.
  6. In the olytics section you should see your tag and category visit information.


  • Why aren’t my anonymous visits being recorded?
    • Suggestions:
      • Double check that oly_enc_id from the cookie is the one you are searching in Audience Search.
      • Check if you are browsing as a known customer by looking at the oly_enc_id cookie. If the cookie value is not-null, then you are browsing as a known customer.
  • Why aren’t my known visits being recorded?
    • Suggestions:
      • Double check if the oly_enc_id that you are expecting has been stored on your cookie correctly by looking at the oly_enc_id cookie for your domain. If the cookie value is null or different from what you expect, then you were not properly identified.
  • Why is my olytics data not showing up in Audience Builder?
    • Suggestions:
      • Audience Builder is rebuilt nightly so anonymous data may take a day to show up. If you need Audience Builder to rebuilt sooner for testing purposes, contact your Audience Relationship Manager at Omeda.
Table of Contents
Scroll to Top