﻿/*
Created By: guskind
Last Modified:

The purpose of this file is to read the variables posted to the page 
by the codebehind of the generating template (so, in the case of the TCG page, 
the Default.aspx or Article.aspx template under TCG/) and generate the appropriate
HBX code for consumption by our stats tracking.

If you have questions about this code, contact Dave (or his designate) or read the HBX
documentation "HBX Installation Guide" -
(get an HBX login and get the doc at: 
 https://login.hitbox.com/members/hbe/install/installation_guide.pdf)
*/

var _hbEC=0,_hbE=new Array;function _hbEvent(a,b){b=_hbE[_hbEC++]=new Object();b._N=a;b._C=0;return b;}
var hbx=_hbEvent("pv");hbx.vpc="HBX0100u";hbx.gn="ehg-wizardsofthecoast.hitbox.com";

// STATIC (values used for all pages)
  /* BASE CONFIG */
  // Primary HBX Account Number(s)
//hbx.acct = "DM560323DJEC"; // <-- Test
hbx.acct = "DM54022377AE"; // <-- Magic  
hbx.pndef ="title"; //DEFAULT PAGE NAME
hbx.ctdef ="full"; //DEFAULT CONTENT CATEGORY

  /* FUNNELING */
hbx.seg = ""; //VISITOR SEGMENTATION
hbx.fnl = ""; //FUNNELS

  /* CAMPAIGNS */
hbx.cmp="";//CAMPAIGN ID
hbx.cmpn = getQueryVariable("cmp");//CAMPAIGN ID IN QUERY
hbx.dcmp = getQueryVariable("dcmp");//DYNAMIC CAMPAIGN ID
hbx.dcmpn="";//DYNAMIC CAMPAIGN ID IN QUERY
hbx.dcmpe="";//DYNAMIC CAMPAIGN EXPIRATION
hbx.dcmpre="";//DYNAMIC CAMPAIGN RESPONSE EXPIRATION
hbx.hra="";//RESPONSE ATTRIBUTE
hbx.hqsr="";//RESPONSE ATTRIBUTE IN REFERRAL QUERY
hbx.hqsp="";//RESPONSE ATTRIBUTE IN QUERY
hbx.hlt="";//LEAD TRACKING
hbx.hla="";//LEAD ATTRIBUTE
hbx.gp="";//CAMPAIGN GOAL
hbx.gpn="";//CAMPAIGN GOAL IN QUERY
hbx.hcn="";//CONVERSION ATTRIBUTE
hbx.hcv="";//CONVERSION VALUE
hbx.cp="null";//LEGACY CAMPAIGN
hbx.cpd="";//CAMPAIGN DOMAIN

// DYNAMIC (configured using values on per-page basis)
if(typeof hbxPageName != "undefined")
{
    hbx.pn = hbxPageName; //PAGE NAME(S) - this defaults to <title></title> content */ 
}

if (typeof hbxMultiLevelContentCategory != "undefined")
{
    hbx.mlc = hbxMultiLevelContentCategory; //MULTI-LEVEL CONTENT CATEGORY
}

if (typeof hbxAccountNumbers != "undefined")
{
    hbx.acct = hbxAccountNumbers;
}
