/*---------------site-specific configuration------------------*/ /* Prospect Site Header Tag Slate Script for Hitbox This is used to implement public site-specific rules and business logic.*/ var scatAccounts = { "DEV": "cschwabptuat", "ACPT": "cschwabptuat", "PROD": "cschwabptprod" }; TagParameters = { Vendor: { SiteCatalyst: { Accounts: typeof (waEnvId) == "undefined" ? "" : (typeof (scatAccounts) == "undefined" ? "charlesschwabdev" : scatAccounts[waEnvId]), DomainName: "metric.schwab.com", SecureDomainName: "smetric.schwab.com" } }, Page: { Name: typeof (waPageName) == "undefined" ? "PUT+PAGE+NAME+HERE" : waPageName, //PAGE NAME(S) - old js var=webHbxPageName Path: typeof (waUri) == "undefined" ? location.pathname : waUri, //FOLDER PATH - old js var=webHbxUri Category: typeof (waCategoryName) == "undefined" ? "prospects" : waCategoryName, //CONTENT CATEGORY MultiLevelCategory: typeof (waMultiLevelCategory) == "undefined" ? "" : waMultiLevelCategory, //Multi Level Category UseDefaultPageName: typeof (waUseDefaultPageName) == "undefined" ? false : waUseDefaultPageName //Default page name indicator }, Optional: { CampaignId: typeof (waCampaign) == "undefined" ? "" : waCampaign, //CAMPAIGN ID - old js var=webHbxCampaign EntryTracking: typeof (waEntryTracking) == "undefined" ? false : waEntryTracking, //ENTRY TRACKING FLAG - old js var=webHbxPageLoadDisabled Segment: typeof (waSegment) == "undefined" ? "" : waSegment, //POPULATION GROUP, UserId: typeof (waUserId) == "undefined" ? "" : waUserId, //USERID or CUSTOMER ID Disabled: typeof (waDisabled) == "undefined" ? false : waDisabled, // PAGE LOAD Indicator- old js var=webHbxDisabled ApplicationName: typeof (waAppName) == "undefined" ? "" : waAppName, // ApplicationName or Type SuccessEventId: typeof (waSuccessEventId) == "undefined" ? "" : waSuccessEventId, // Success Event Id ApplicationId: typeof (waApplicationId) == "undefined" ? "" : waApplicationId, // Application Id (Transaction Id) AccountType: typeof (waAccountType) == "undefined" ? "" : waAccountType, // Account Type LeadType: typeof (waLeadType) == "undefined" ? "" : waLeadType, // Lead Type CeidA: typeof (waCeidA) == "undefined" ? "" : waCeidA // Browser iD }, CustomEventParameters: { CustomEventVar5: typeof (waCustEventVar5) == "undefined" ? "" : waCustEventVar5, //Custom Event 5 CustomEventVar6: typeof (waCustEventVar6) == "undefined" ? "" : waCustEventVar6, //Custom Event 6 CustomEventVar7: typeof (waCustEventVar7) == "undefined" ? "" : waCustEventVar7, //Custom Event 7 CustomEventVar8: typeof (waCustEventVar8) == "undefined" ? "" : waCustEventVar8, //Custom Event 8 CustomEventVar9: typeof (waCustEventVar9) == "undefined" ? "" : waCustEventVar9, //Custom Event 9 CustomEventVar10: typeof (waCustEventVar10) == "undefined" ? "" : waCustEventVar10, //Custom Event 10 CustomEventVar19: typeof (waCustEventVar19) == "undefined" ? "" : waCustEventVar19, //Custom Event Parameter 19 CustomEventVar60: typeof (waCustEventVar60) == "undefined" ? "" : waCustEventVar60, //Custom Event Parameter 60 CustomEventVar61: typeof (waCustEventVar61) == "undefined" ? "" : waCustEventVar61, //Custom Event Parameter 61 CustomEventVar62: typeof (waCustEventVar62) == "undefined" ? "" : waCustEventVar62, //Custom Event Parameter 62 CustomEventVar63: typeof (waCustEventVar63) == "undefined" ? "" : waCustEventVar63, //Custom Event Parameter 63 CustomEventVar64: typeof (waCustEventVar64) == "undefined" ? "" : waCustEventVar64, //Custom Event Parameter 64 CustomEventVar65: typeof (waCustEventVar65) == "undefined" ? "" : waCustEventVar65, //Custom Event Parameter 65 CustomEventVar66: typeof (waCustEventVar66) == "undefined" ? "" : waCustEventVar66, //Custom Event Parameter 66 CustomEventVar67: typeof (waCustEventVar67) == "undefined" ? "" : waCustEventVar67, //Custom Event Parameter 67 CustomEventVar68: typeof (waCustEventVar68) == "undefined" ? "" : waCustEventVar68, //Custom Event Parameter 68 CustomEventVar69: typeof (waCustEventVar69) == "undefined" ? "" : waCustEventVar69, //Custom Event Parameter 69 CustomEventVar70: typeof (waCustEventVar70) == "undefined" ? "" : waCustEventVar70 //Custom Event Parameter 70 }, DefaultValues: { PageName: "", //DEFAULT PAGE NAME ContentCategory: typeof (waContentCatgDefault) == "undefined" ? "full" : waContentCatgDefault //DEFAULT CONTENT CATEGORY } }; /* Prospect Site Header Tag Slate Script for Custom Hitbox Tagging.*/ //common method to generate tag call from overlay e.g. GAO function waTagOverlay(pagename, multilevelcat, cat, n) { if (typeof (TagParameters) != "undefined" && typeof (TagParameters.Vendor) != "undefined") { if (typeof (TagParameters.Vendor.SiteCatalyst) != "undefined") scatTagOverlay(pagename, multilevelcat, cat, n); } } //common method for search event custom tagging function waSearchEvent(pagename, keyword, results) { if (typeof (TagParameters) != "undefined" && typeof (TagParameters.Vendor) != "undefined") { if (typeof (TagParameters.Vendor.SiteCatalyst) != "undefined") scatSearchEvent(pagename, keyword, results); } } //common method for ratings review custom tagging function waRatingsEvent(productname) { if (typeof (TagParameters) != "undefined" && typeof (TagParameters.Vendor) != "undefined") { if (typeof (TagParameters.Vendor.SiteCatalyst) != "undefined") scatSetCustom23(productname); $.ajax({ type: "GET", async: false, url: "http://www.schwab.com" + "/system/asset?cmsid=CC-TAG-FOOTER&filename=hbx.js", dataType: "script" }); } } //common methods for video custom tagging function waMediaPlay(waMediaName, waMediaOffset, waMediaPlayerName, waFirstTimePlay) { if (typeof (TagParameters) != "undefined" && typeof (TagParameters.Vendor) != "undefined") { if (typeof (TagParameters.Vendor.SiteCatalyst) != "undefined") scatMediaPlay(waMediaName, waMediaOffset, waMediaPlayerName, waFirstTimePlay); } } function waMediaPause(waMediaName, waMediaOffset) { if (typeof (TagParameters) != "undefined" && typeof (TagParameters.Vendor) != "undefined") { if (typeof (TagParameters.Vendor.SiteCatalyst) != "undefined") scatMediaPause(waMediaName, waMediaOffset); } } function waMediaStop(waMediaName, waMediaOffset) { if (typeof (TagParameters) != "undefined" && typeof (TagParameters.Vendor) != "undefined") { if (typeof (TagParameters.Vendor.SiteCatalyst) != "undefined") scatMediaStop(waMediaName, waMediaOffset); } } function waMediaOpen(waMediaName, waMediaLength, waMediaPlayerName) { if (typeof (TagParameters) != "undefined" && typeof (TagParameters.Vendor) != "undefined") { if (typeof (TagParameters.Vendor.SiteCatalyst) != "undefined") scatMediaOpen(waMediaName, waMediaLength, waMediaPlayerName); } } function waMediaClose(waMediaName, waMediaOffset) { if (typeof (TagParameters) != "undefined" && typeof (TagParameters.Vendor) != "undefined") { if (typeof (TagParameters.Vendor.SiteCatalyst) != "undefined") scatMediaClose(waMediaName, waMediaOffset); } } function waMediaComplete(waMediaName) { // Nothing to do for now. } // Correct common formatting errors due to CMS-format URLs and Assign the Multi Level Category value for secure site site TagParameters.Page = (function (P) { P.Path.replace(/secure\/.*?\//, "").replace(/\/index.html|\/$/, "").match(/(.*\/)(.*)/); if (P.Name.indexOf("/") > -1 && P.Name.length > 1) { P.Name.match(/(.*\/)(.*)/); P.Path = RegExp.$1; P.Name = RegExp.$2; } else if (P.Name.indexOf("/") > -1 && P.Name == "/") { P.Path = P.Name; P.Name = RegExp.$2; } else { P.Path = RegExp.$1; P.Name = (P.Name == "" ? RegExp.$2 : P.Name); } return P; })(TagParameters.Page); /* deprecated *//*-----------SiteCatalyst Header Script Library------------------*/ /* Global Tag Slate Header Include for SiteCatalyst. This is shared by all sites that uses SiteCatalyst for tracking.*/ /*Insert the primary timezone for the site (e.g For ET insert -5) */ sc_timezone = "-5"; /*Insert the top level domain(s) that should be tracked as internal or part of the site itself */ sc_internalDomain = "javascript:,schwab.com," + document.location.hostname; /* Method to generate SiteCatalyst call from overlay implementation e.g. GAO*/ function scatTagOverlay(pagename, multilevelcat, scatcat, n) { if (typeof (TagParameters.Vendor.SiteCatalyst.S) != "undefined") { if (typeof (TagParameters.Page) != "undefined") { TagParameters.Page.Name = typeof (pagename) == "undefined" ? "" : pagename; TagParameters.Page.MultiLevelCategory = typeof (multilevelcat) == "undefined" ? "" : multilevelcat; } //for lead event capture (if set appname/eventid/transactionid set from the overlay) if (typeof (waAppName) != "undefined") TagParameters.Vendor.SiteCatalyst.S.eVar29 = waAppName; if (typeof (waSuccessEventId) != "undefined") TagParameters.Vendor.SiteCatalyst.S.events = waSuccessEventId; TagParameters.Vendor.SiteCatalyst.S.tl(); } } /* Method to set custom variable into SiteCatalyst variable for Search Events */ function scatSearchEvent(pagename, keywords, results) { if (typeof (TagParameters.Vendor.SiteCatalyst.S) != "undefined") { var searchParam = typeof (waSearchParameter) == "undefined" ? "" : (waSearchParameter != null ? waSearchParameter : ""); TagParameters.Vendor.SiteCatalyst.S.pagename = typeof (pagename) == "undefined" ? "" : pagename; TagParameters.Vendor.SiteCatalyst.S.prop27 = typeof (keywords) == "undefined" ? searchParam : keywords; TagParameters.Vendor.SiteCatalyst.S.eVar27 = "D=c27"; TagParameters.Vendor.SiteCatalyst.S.events = TagParameters.Vendor.SiteCatalyst.S.apl(TagParameters.Vendor.SiteCatalyst.S.events, "event10", ",", 2); if (typeof (results) && (results == "0" || results == 0)) { TagParameters.Vendor.SiteCatalyst.S.events = TagParameters.Vendor.SiteCatalyst.S.apl(TagParameters.Vendor.SiteCatalyst.S.events, "event12", ",", 2); } if (typeof (TagParameters.Vendor.SiteCatalyst.S.t) == "function") TagParameters.Vendor.SiteCatalyst.S.t(); } } /* Method to set custom variable into SiteCatalyst variable for Ratings Review */ function scatSetCustom23(productname) { if (typeof (TagParameters.Vendor.SiteCatalyst.S) != "undefined") { // TagParameters.Vendor.SiteCatalyst.S.prop24 = typeof (productname) == "undefined" ? "" : pagename; TagParameters.Vendor.SiteCatalyst.S.prop24 = typeof (productname) == "undefined" ? "" : productname + "_ReadReviews"; TagParameters.Vendor.SiteCatalyst.S.tl(); } } /* Common SiteCatalyst Tagging Methods for Video */ function scatMediaOpen(mediaName, mediaLength, mediaPlayerName) { TagParameters.Vendor.SiteCatalyst.S.Media.open(mediaName, mediaLength, mediaPlayerName); } function scatMediaPause(mediaName, mediaOffset) { TagParameters.Vendor.SiteCatalyst.S.Media.stop(mediaName, mediaOffset); } function scatMediaPlay(mediaName, mediaOffset, mediaPlayerName, initialPlay) { if (initialPlay == true) { TagParameters.Vendor.SiteCatalyst.S.Media.open(mediaName, mediaOffset, mediaPlayerName); TagParameters.Vendor.SiteCatalyst.S.Media.play(mediaName, 0); } else { TagParameters.Vendor.SiteCatalyst.S.Media.play(mediaName, mediaOffset); } } function scatMediaClose(mediaName, mediaOffset) { TagParameters.Vendor.SiteCatalyst.S.Media.stop(mediaName, mediaOffset); TagParameters.Vendor.SiteCatalyst.S.Media.close(mediaName); } function scatMediaStop(mediaName, mediaOffset) { TagParameters.Vendor.SiteCatalyst.S.Media.stop(mediaName, mediaOffset); } function scatMediaScrub(mediaName, offsetFrom, offsetTo) { TagParameters.Vendor.SiteCatalyst.S.Media.stop(mediaName, offsetFrom); TagParameters.Vendor.SiteCatalyst.S.Media.play(mediaName, offsetTo); } //common method to update Category and PageName function scatSetCategoryAndPageName(category, pagename) { TagParameters.Page.Category = typeof (category) == "undefined" ? "" : category; TagParameters.Page.Name = typeof (pagename) == "undefined" ? "" : TagParameters.Page.Category + "/" + pagename; TagParameters.Page.Name = TagParameters.Page.Name.replace(/\/\/+/gi, "/"); if (typeof (TagParameters.Vendor.SiteCatalyst.S.t) == "function") TagParameters.Vendor.SiteCatalyst.S.t(); } // Path should not be part of the name, as path and category will be extracted from TagParameters' MultiLevelCategory function scatSendAsync(pageName) { if (typeof (TagParameters.Vendor.SiteCatalyst.S) != "undefined") { if (typeof (TagParameters.Page.Name) != "undefined") { TagParameters.Page.Name = typeof (pageName) == "undefined" ? "" : "/" + TagParameters.Page.MultiLevelCategory + "/" + pageName; TagParameters.Page.Name = TagParameters.Page.Name.replace(/\/\/+/gi, "/"); } if (typeof (TagParameters.Vendor.SiteCatalyst.S.t) == "function") TagParameters.Vendor.SiteCatalyst.S.t(); } } // Method added to update just the ceid value should be follwed up by a method call that internally calls s.t()- for custom tracking. function scatUpdateCeid(ceid) { if (typeof (TagParameters.Optional.Ceid) != "undefined") TagParameters.Optional.Ceid = typeof (ceid) == "undefined" ? "" : ceid; } //Method to custom track file down loads function scatTrackFileDL(fileUrl) { // File Downloads var lnkType = 'd'; TagParameters.Vendor.SiteCatalyst.S.linkTrackVars = "events,eVar10,prop10"; TagParameters.Vendor.SiteCatalyst.S.prop10 = TagParameters.Vendor.SiteCatalyst.S.eVar10 = fileUrl; TagParameters.Vendor.SiteCatalyst.S.events = TagParameters.Vendor.SiteCatalyst.S.linkTrackEvents = "event31"; TagParameters.Vendor.SiteCatalyst.S.linkTrackVars = "events,eVar10,prop10"; if (typeof (TagParameters.Vendor.SiteCatalyst.S.tl) == "function") { TagParameters.Vendor.SiteCatalyst.S.tl(true, lnkType, fileUrl); } } // Need this intermediate function so that the values for pagename // are not overriden in the do_plugins method from previous TagParameters values. // Linktypes: 'e' for exist links, 'd' for download links, and 'o' for generic links also supports some custome link types. // Schwab specific link types: sch-srp: search results links. function scatCustomLinkTrack(lnkType, linkName) { if (typeof (TagParameters.Vendor.SiteCatalyst.S) != "undefined") { var scodeLinkType = 'o'; if (lnkType == "sch-srp" || lnkType == "SCH-SRP") { TagParameters.Vendor.SiteCatalyst.S.linkTrackVars = "prop11,prop35,prop36,prop37,prop38,eVar8,eVar28,events"; TagParameters.Vendor.SiteCatalyst.S.eVar28 = linkName; TagParameters.Vendor.SiteCatalyst.S.linkTrackEvents = "event11"; TagParameters.Vendor.SiteCatalyst.S.events = "event11"; } else { TagParameters.Vendor.SiteCatalyst.S.linkTrackVars = "prop11,prop35,prop36,prop37,prop38,eVar8"; } if (typeof (TagParameters.Page.Name) != "undefined") { TagParameters.Vendor.SiteCatalyst.S.prop35 = TagParameters.Page.Name; TagParameters.Vendor.SiteCatalyst.S.prop36 = linkName; TagParameters.Vendor.SiteCatalyst.S.prop37 = TagParameters.Page.Name + "|" + linkName; } if (typeof (TagParameters.Vendor.SiteCatalyst.S.tl) == "function") { if (lnkType == 'd' || lnkType == 'e' || lnkType == 'o') { scodeLinkType = lnkType; } TagParameters.Vendor.SiteCatalyst.S._hitType = "_scLV"; TagParameters.Vendor.SiteCatalyst.S.tl(true, scodeLinkType, linkName, null, "navigate"); TagParameters.Vendor.SiteCatalyst.S._hitType = ""; } } } // function to track social share // linkName: Share Link Name. // Linktypes: 'e' for exist links, 'd' for download links, and 'o' for generic links. function scatShareLinkTrack(lnkType, linkName) { if (typeof (TagParameters.Vendor.SiteCatalyst.S) != "undefined") { if (typeof (TagParameters.Page.Name) != "undefined") { TagParameters.Vendor.SiteCatalyst.S.linkTrackVars = "prop11,prop35,prop36,prop37,prop38,eVar8,eVar53"; TagParameters.Vendor.SiteCatalyst.S.prop35 = TagParameters.Page.Name; TagParameters.Vendor.SiteCatalyst.S.prop36 = linkName; TagParameters.Vendor.SiteCatalyst.S.prop37 = TagParameters.Page.Name + "|" + linkName; TagParameters.Vendor.SiteCatalyst.S.linkTrackEvents = TagParameters.Vendor.SiteCatalyst.S.apl(TagParameters.Vendor.SiteCatalyst.S.linkTrackEvents, "event6", ",", 2); TagParameters.Vendor.SiteCatalyst.S.eVar53 = linkName; TagParameters.Vendor.SiteCatalyst.S.events = TagParameters.Vendor.SiteCatalyst.S.apl(TagParameters.Vendor.SiteCatalyst.S.events, "event6", ",", 2); } if (typeof (TagParameters.Vendor.SiteCatalyst.S.tl) == "function") { TagParameters.Vendor.SiteCatalyst.S._hitType = "_scLV"; TagParameters.Vendor.SiteCatalyst.S.tl(true, lnkType, linkName, null, "navigate"); TagParameters.Vendor.SiteCatalyst.S._hitType = ""; } } } //Method to track Print clicks. function scatPrintTrack() { if (typeof (TagParameters.Vendor.SiteCatalyst.S) != "undefined") { if (typeof (TagParameters.Page.Name) != "undefined") { TagParameters.Vendor.SiteCatalyst.S.linkTrackVars = "prop11,prop35,prop36,prop37,prop38,eVar8,eVar54"; TagParameters.Vendor.SiteCatalyst.S.prop35 = TagParameters.Page.Name; TagParameters.Vendor.SiteCatalyst.S.prop36 = "Print"; TagParameters.Vendor.SiteCatalyst.S.prop37 = s.pageName + "|" + s.prop36; TagParameters.Vendor.SiteCatalyst.S.eVar54 = "Print"; } if (typeof (TagParameters.Vendor.SiteCatalyst.S.tl) == "function") { TagParameters.Vendor.SiteCatalyst.S._hitType = "_scLV"; TagParameters.Vendor.SiteCatalyst.S.tl(true, "o", "Print", null, "navigate"); TagParameters.Vendor.SiteCatalyst.S._hitType = ""; } } } // Track the successful event of an agent joining a chat session. // The data element being tracked in eVar19 is a pipe-delimited value // of the service line, Brokerage, Banking, etc., and session ID. function scatChatSuccessTrack(serviceLine, sessionId) { if (typeof (TagParameters.Vendor.SiteCatalyst.S) != "undefined") { TagParameters.Vendor.SiteCatalyst.S.linkTrackVars = "eVar19,events"; TagParameters.Vendor.SiteCatalyst.S.eVar19 = serviceLine + "|" + sessionId; TagParameters.Vendor.SiteCatalyst.S.linkTrackEvents = "event44"; TagParameters.Vendor.SiteCatalyst.S.events = "event44"; if (typeof (TagParameters.Vendor.SiteCatalyst.S.tl) == "function") { TagParameters.Vendor.SiteCatalyst.S._hitType = "_scLV"; TagParameters.Vendor.SiteCatalyst.S.tl(true, 'o', TagParameters.Vendor.SiteCatalyst.S.eVar19); TagParameters.Vendor.SiteCatalyst.S._hitType = ""; } } } /* Function to bundle TagParameters values for Tagging purpose */ (function (T) { // Validate and set defaults. T = T || {}; if (typeof (T.Vendor) != "undefined") T.Vendor = T.Vendor || {}; if (typeof (T.Vendor.SiteCatalyst) != "undefined") { T.Vendor.SiteCatalyst = T.Vendor.SiteCatalyst || {}; T.Vendor.SiteCatalyst.Accounts = typeof (T.Vendor.SiteCatalyst.Accounts) == "undefined" ? "No_Account" : T.Vendor.SiteCatalyst.Accounts; T.Vendor.SiteCatalyst.DomainName = typeof (T.Vendor.SiteCatalyst.DomainName) == "undefined" ? "No_DomainName" : T.Vendor.SiteCatalyst.DomainName; T.Vendor.SiteCatalyst.SecureDomainName = typeof (T.Vendor.SiteCatalyst.SecureDomainName) == "undefined" ? "No_SecureDomain" : T.Vendor.SiteCatalyst.SecureDomainName; T.Vendor.SiteCatalyst.CodeVersion = typeof (T.Vendor.SiteCatalyst.CodeVersion) == "undefined" ? "H.27.5" : T.Vendor.SiteCatalyst.CodeVersion; } if (typeof (T.Page) != "undefined") { T.Page = T.Page || {}; T.Page.Path = typeof (T.Page.Path) == "undefined" ? location.pathname : T.Page.Path; T.Page.Category = typeof (T.Page.Category) == "undefined" ? "No_Category" : T.Page.Category; if (T.Page.Category != null && T.Page.Category.length > 0 && T.Page.Category.substring(0, 1) != "/") { T.Page.Category = "/" + T.Page.Category; } T.Page.UseDefaultPageName = typeof (T.Page.UseDefaultPageName) == "undefined" ? false : T.Page.UseDefaultPageName; if (T.Page.UseDefaultPageName) { T.Page.Name = typeof (T.Page.Name) == "undefined" ? "" : T.Page.Category + "/" + T.Page.Name; } else { T.Page.Name = typeof (T.Page.Name) == "undefined" ? "" : T.Page.Category + "/" + T.Page.Path + "/" + T.Page.Name; } T.Page.Name = T.Page.Name.replace(/\/\/+/gi, "/"); var mlc = T.Page.Category + "/" + T.Page.Path; mlc = mlc.replace(/\/\/+/gi, "/"); T.Page.MultiLevelCategory = typeof (T.Page.MultiLevelCategory) == "undefined" ? "No_MultiLevelCategory" : (T.Page.MultiLevelCategory != "" ? T.Page.MultiLevelCategory : mlc); T.Page.SiteSubSection2 = typeof (T.Page.SiteSubSection2) == "undefined" ? "" : T.Page.SiteSubSection2; T.Page.SiteSubSection3 = typeof (T.Page.SiteSubSection3) == "undefined" ? "" : T.Page.SiteSubSection3; } if (typeof (T.Tab) != "undefined") { T.Tab = T.Tab || {}; T.Tab.RootPageName = typeof (T.Tab.RootPageName) == "undefined" ? "" : T.Tab.RootPageName; T.Tab.TabNames = typeof (T.Tab.TabNames) == "undefined" ? "" : T.Tab.TabNames; } if (typeof (T.Optional) != "undefined") { T.Optional = T.Optional || {}; T.Optional.Disabled = typeof (T.Optional.Disabled) == "undefined" ? false : T.Optional.Disabled; T.Optional.LinkTracking = typeof (T.Optional.LinkTracking) == "undefined" ? true : T.Optional.LinkTracking; T.Optional.EntryTracking = typeof (T.Optional.EntryTracking) == "undefined" ? false : T.Optional.EntryTracking; T.Optional.CampaignId = typeof (T.Optional.CampaignId) == "undefined" ? "" : T.Optional.CampaignId; T.Optional.Segment = typeof (T.Optional.Segment) == "undefined" ? "" : T.Optional.Segment; T.Optional.UserId = typeof (T.Optional.UserId) == "undefined" ? "" : T.Optional.UserId; T.Optional.ApplicationName = typeof (T.Optional.ApplicationName) == "undefined" ? "" : T.Optional.ApplicationName; T.Optional.SuccessEventId = typeof (T.Optional.SuccessEventId) == "undefined" ? "" : T.Optional.SuccessEventId; T.Optional.ApplicationId = typeof (T.Optional.ApplicationId) == "undefined" ? "" : T.Optional.ApplicationId; T.Optional.AccountType = typeof (T.Optional.AccountType) == "undefined" ? "" : T.Optional.AccountType; T.Optional.LeadType = typeof (T.Optional.LeadType) == "undefined" ? "" : T.Optional.LeadType; T.Optional.Ceid = typeof (T.Optional.Ceid) == "undefined" ? "" : T.Optional.Ceid; T.Optional.Cbid = typeof (T.Optional.Cbid) == "undefined" ? "" : T.Optional.Cbid; T.Optional.ApplicationDetail1 = typeof (T.Optional.ApplicationDetail1) == "undefined" ? "" : T.Optional.ApplicationDetail1; T.Optional.ToolName = typeof (T.Optional.ToolName) == "undefined" ? "" : T.Optional.ToolName; T.Optional.ToolSuccessAction = typeof (T.Optional.ToolSuccessAction) == "undefined" ? "" : T.Optional.ToolSuccessAction; T.Optional.ToolErrorDescription = typeof (T.Optional.ToolErrorDescription) == "undefined" ? "" : T.Optional.ToolErrorDescription; T.Optional.OmniLanguage = typeof (T.Optional.OmniLanguage) == "undefined" ? "en-US" : T.Optional.OmniLanguage; T.Optional.MoxieChatType = typeof (T.Optional.MoxieChatType) == "undefined" ? "" : T.Optional.MoxieChatType; T.Optional.MoxieServiceLineId = typeof (T.Optional.MoxieServiceLineId) == "undefined" ? "" : T.Optional.MoxieServiceLineId; T.Optional.ExpertInsightsContentType = typeof (T.Optional.ExpertInsightsContentType) == "undefined" ? "" : T.Optional.ExpertInsightsContentType; T.Optional.AptLoad = typeof (T.Optional.AptLoad) == "undefined" ? "false" : T.Optional.AptLoad; T.Optional.AudienceType = typeof (T.Optional.AudienceType) == "undefined" ? "false" : T.Optional.AudienceType; T.Optional.FirmName = typeof (T.Optional.FirmName) == "undefined" ? "false" : T.Optional.FirmName; T.Optional.SegmentCode = typeof (T.Optional.SegmentCode) == "undefined" ? "false" : T.Optional.SegmentCode; T.Optional.Platform = typeof (T.Optional.Platform) == "undefined" ? "false" : T.Optional.Platform; T.Optional.UserAgentString = typeof (T.Optional.UserAgentString) == "undefined" ? "false" : T.Optional.UserAgentString; T.Optional.ContentCTA = typeof (T.Optional.ContentCTA) == "undefined" ? "" : T.Optional.ContentCTA; T.Optional.CorpCustId = typeof (T.Optional.CorpCustId) == "undefined" ? "" : T.Optional.ContentCTA; } if (typeof (T.DefaultValues) != "undefined") { T.DefaultValues.PageName = typeof (T.DefaultValues.PageName) == "undefined" ? "" : T.DefaultValues.PageName; T.DefaultValues.ContentCategory = typeof (T.DefaultValues.ContentCategory) == "undefined" ? "full" : T.DefaultValues.ContentCategory; } if (typeof (T.CustomVariables) != "undefined") { T.CustomVariables.CustomVar1 = typeof (T.CustomVariables.CustomVar1) == "undefined" ? "" : T.CustomVariables.CustomVar1; T.CustomVariables.CustomVar2 = typeof (T.CustomVariables.CustomVar1) == "undefined" ? "" : T.CustomVariables.CustomVar2; T.CustomVariables.CustomVar3 = typeof (T.CustomVariables.CustomVar1) == "undefined" ? "" : T.CustomVariables.CustomVar3; T.CustomVariables.CustomVar4 = typeof (T.CustomVariables.CustomVar1) == "undefined" ? "" : T.CustomVariables.CustomVar4; } if (typeof (T.CustomEventParameters) != "undefined") { T.CustomEventParameters.CustomEventVar5 = typeof (T.CustomEventParameters.CustomEventVar5) == "undefined" ? "" : T.CustomEventParameters.CustomEventVar5; T.CustomEventParameters.CustomEventVar6 = typeof (T.CustomEventParameters.CustomEventVar6) == "undefined" ? "" : T.CustomEventParameters.CustomEventVar6; T.CustomEventParameters.CustomEventVar7 = typeof (T.CustomEventParameters.CustomEventVar7) == "undefined" ? "" : T.CustomEventParameters.CustomEventVar7; T.CustomEventParameters.CustomEventVar8 = typeof (T.CustomEventParameters.CustomEventVar8) == "undefined" ? "" : T.CustomEventParameters.CustomEventVar8; T.CustomEventParameters.CustomEventVar13 = typeof (T.CustomEventParameters.CustomEventVar13) == "undefined" ? "" : T.CustomEventParameters.CustomEventVar13; T.CustomEventParameters.CustomEventVar19 = typeof (T.CustomEventParameters.CustomEventVar19) == "undefined" ? (typeof (tmp) == "undefined" || tmp == null ? "" : tmp[1]) : T.CustomEventParameters.CustomEventVar19; T.CustomEventParameters.CustomEventVar24 = typeof (T.CustomEventParameters.CustomEventVar24) == "undefined" ? "" : T.CustomEventParameters.CustomEventVar24; T.CustomEventParameters.CustomEventVar59 = typeof (T.CustomEventParameters.CustomEventVar59) == "undefined" ? "" : T.CustomEventParameters.CustomEventVar59; T.CustomEventParameters.CustomEventVar60 = typeof (T.CustomEventParameters.CustomEventVar60) == "undefined" ? "" : T.CustomEventParameters.CustomEventVar60; T.CustomEventParameters.CustomEventVar61 = typeof (T.CustomEventParameters.CustomEventVar61) == "undefined" ? "" : T.CustomEventParameters.CustomEventVar61; T.CustomEventParameters.CustomEventVar62 = typeof (T.CustomEventParameters.CustomEventVar62) == "undefined" ? "" : T.CustomEventParameters.CustomEventVar62; T.CustomEventParameters.CustomEventVar63 = typeof (T.CustomEventParameters.CustomEventVar63) == "undefined" ? "" : T.CustomEventParameters.CustomEventVar63; T.CustomEventParameters.CustomEventVar64 = typeof (T.CustomEventParameters.CustomEventVar64) == "undefined" ? "" : T.CustomEventParameters.CustomEventVar64; T.CustomEventParameters.CustomEventVar65 = typeof (T.CustomEventParameters.CustomEventVar65) == "undefined" ? "" : T.CustomEventParameters.CustomEventVar65; T.CustomEventParameters.CustomEventVar66 = typeof (T.CustomEventParameters.CustomEventVar66) == "undefined" ? "" : T.CustomEventParameters.CustomEventVar66; T.CustomEventParameters.CustomEventVar67 = typeof (T.CustomEventParameters.CustomEventVar67) == "undefined" ? "" : T.CustomEventParameters.CustomEventVar67; T.CustomEventParameters.CustomEventVar68 = typeof (T.CustomEventParameters.CustomEventVar68) == "undefined" ? "" : T.CustomEventParameters.CustomEventVar68; T.CustomEventParameters.CustomEventVar69 = typeof (T.CustomEventParameters.CustomEventVar69) == "undefined" ? "" : T.CustomEventParameters.CustomEventVar69; T.CustomEventParameters.CustomEventVar70 = typeof (T.CustomEventParameters.CustomEventVar70) == "undefined" ? "" : T.CustomEventParameters.CustomEventVar70; } })(TagParameters);