Blue Triangle Help Center
Auto Light Dark
Auto Light Dark

Email Tracking

Summary

You can track email campaigns with Blue Triangle by specifying the following HTML element in the email, along with a few required parameters. 

HTML Element

The following HTML element must be specified in the email in order for Blue Triangle to track it. Note there are many parameters in the URL, but only a few are required. 

<img src="https://d.btttag.com/btt.gif?gID=791367739769386742&sID=872974223280318984&AB=Default&DCTR=Default&CmpN=Example%20Email%20Campaign&txnName=OpenedEmail&pageName=Example-Email-View&pageType=Email-View&siteID=demosports&thisURL=smtp&bvzn=Other-Email&EUOS=Windows%2010&excluded=5&BPT=12&CN1=0&CN2=0&CN3=0&CN4=0&CN5=0&CN6=0&CN7=0&CN8=0&CN9=0&CN10=0&CSID=a4e5efbd3445fdc9876abc&CV1=&CV2=&CV3=&CV4=&CV5=&CV6=&CV7=&CV8=&CV9=&CV10=&CmpM=None&CmpS=Direct&IMAGE_SIZE=0&JS_SIZE=0&LTM=0&NVSTR=0&ONumBr=0&REE=0&RV=0&RefURL=&SHi=0&SWi=0&WCDtt=c&bv=0&c_count=0&campaign=&cartValue=0&co_count=0&collectAt=100&connectStart=0&currencyCode=&dns=0&dom=0&domContentLoadedEnd=0&domContentLoadedStart=0&domInteractive=0&domLoading=0&domainLookupStart=0&elementCount=0&fByte=0&fCPnt=0&fetchStart=0&firstPaint=0&fmp=0&fps=0&fps_tti=0&loadEventStart=0&lt_tti=0&nst=0&orderTND=0&pSz=0&pWSz=0&pageValue=&pgTm=0&redirectCount=0&redirectStart=0&requestStart=0&responseStart=0&secureConnectionStart=0&ssl=0&tcp=0&top=0&totRD=0&tti=0&tul=0&unloadEventStart=0&wcd=0&eT=7&navigationType=7" alt="img" style="display:none">

In this example, here are the required customizations that were made. We'll explain what these are in the following section.

siteID=demosports

sID=872974223280318984

gID=872974223280318984

CSID=a4e5efbd3445fdc9876abc

CmpN=Example Email Campaign

txnName=OpenedEmail

pageName=Example-Email-View

Note: the remainder of the URL params in the HTML element above are optional or for future use.

Required URL Parameters

Name

Description

siteID

The id for the site the data should go to in Blue Triangle. This is the javascript tag prefix (e.g. https://example.btttag.com/btt.js).

sID

Blue Triangle Session ID for use in linking the various pages of a user's visit together for a single web browser session.

gID

Set this to the same as the SessionID.

CSID

Customer's Session ID - This should be set to something unique for this user's visit or session.

CmpN

Campaign Name - This should be for your campaign category that can be trended from day to day or week to week.

txnName

High level traffic segment identifier for general purposes.

pageName

Specific Naming for the email purpose or other description

For gID and sID:
The following is example code to generate a random sID and gID in Javascript or node.js.

function rnd(){ Math.floor((Math.random() * 888) + 100) + ''; } var TMs = rnd() + rnd() + rnd() + rnd() + rnd() + rnd(); var BTT_X0siD = TMs.substring(0, 19);

Note: Some email clients may require the user to "download external content" in order for this tracking to function.