Changes for page Widget Implementation -- oc.min.js
Last modified by Admin User on 2025/06/27 12:15
From version 42.1
edited by Admin User
on 2024/10/28 16:54
on 2024/10/28 16:54
Change comment:
There is no comment for this version
To version 9.1
edited by melanie@one-count_com
on 2016/11/09 18:30
on 2016/11/09 18:30
Change comment:
There is no comment for this version
Summary
-
Page properties (4 modified, 0 added, 0 removed)
-
Objects (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Title
-
... ... @@ -1,1 +1,1 @@ 1 -Widget Implementation -- oc.min.js1 +Widget Implementation (v12.x) - Parent
-
... ... @@ -1,1 +1,0 @@ 1 -System Setup Detail and Technical Information - Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. admin1 +XWiki.melanie@one-count_com - Content
-
... ... @@ -1,94 +1,49 @@ 1 1 {{layout}} 2 2 {{layout-section ac:type="two_right_sidebar"}} 3 3 {{layout-cell}} 4 - {{idname="Start ScreenSteps Content"/}}5 - (% style="color:#808080" %)// In order to identify usersand track activity, widgets must be embeddedon every page of your web site.//4 + 5 +{{/layout-cell}} 6 6 7 -(% style="color:#808080" %)//These widgets, specific to your site(s), and directions for placement are provided in the Widget Builder.// 7 +{{layout-cell}} 8 + 8 8 9 - ===ONEcount Library/Tracker ===10 + 10 10 11 -This javascript snippet controls gating/access, cookie setting, and handles web tracking_**.**_ 12 + 13 +{{/layout-cell}} 14 +{{/layout-section}} 12 12 13 -Access protection: Pages or sections of pages that are defined as a resource in ONEcount and that require registration/ signup are handled by this widget. If a resource is being accessed and the user that is trying to access it is not logged in or doesn't have access to that particular resource, then they will be directed to the lookup/ login page (or if lookup/login is set to "off", to the registration form enabled with progressive lookup functionality) where they can log in or complete registration. 16 +{{layout-section ac:type="two_right_sidebar"}} 17 +{{layout-cell}} 14 14 15 -This widget also allows users who have clicked on a smartlink(% style="color:#ff0000" %)*(%%) to automatically be logged in to ONEcount, as well as users identified by a ONEcount cookie-sync with other third-party identification systems you may use. In either case, ONEcount will identify the user and set a cookie for her/him. Any subsequent action by that user on the site will then be tracked and attributed to that user (via tracking widget). These users are included in statistics for Known Users. Note that if a user goes directly to the website (not directed there by a smartlink) and is NOT logged in, he/she will NOT be identified and tracked as a Known User. A user must be logged in to be identified. 16 16 17 -This widget also tracks all web activity. 20 +{{id name="Start ScreenSteps Content"/}} 21 +(% style="color: rgb(128,128,128);" %)// In order to identify users and track activity, widgets must be embedded on every page of your web site .// 18 18 19 - ====ONEcountLibrary/TrackerPlacement:====23 +(% style="color: rgb(128,128,128);" %)//These widgets, specific to your site(s), and directions for placement are provided in the Widget Builder.// 20 20 21 - ThemainONEcountwidget, (oc.min.js) is responsible forloading most of the code that ONEcount uses when a uservisitsyourweb site. Italso takes the firststep in identifying visitors to your web site, so it’s important it be placed properly on the site.25 +=== ONEcount Library/Tracker === 22 22 23 -T ag management platformscan be usedaslong as youcan control where the ONEcount widget loads. Because order andplacementisoftendifficult for userstoconfigure, we recommend placingtheONEcount widgetdirectly onthe page, as the first element in thedocument<HEAD>. For further reading on fun with GoogleTag Manager,read [[here.>>url:https://www.simoahava.com/gtm-tips/gtm-container-snippet-in-the-head/||shape="rect"]]27 +This javascript snippet controls gating/access, cookie setting, and handles web tracking_**.**_ 24 24 25 - ONEcount usesfirst-partycookiestotrackuser behavior andtargetusers.There aretwomain cookiesthataremportanthere:theOCIDcookie,which identifiesauserwhoexists as auser inthe ONEcount database(ie., a “known”user),and thetmpcookie,whichisatrackingcookieassignedtoall users,knownandunknown.Ifauserhasatmpcookiein theirbrowser,ONEcountcantrackandtargettheuser.If theuserlsohas anOCID cookiein theirbrowser,ONEcountcanmatchthatbrowser toarecordinyourdatabase.29 +Access protection: Pages or sections of pages that are defined as a resource in ONEcount and that require registration/ signup are handled by this widget. If a resource is being accessed and the user that is trying to access it is not logged in or doesn't have access to that particular resource, then they will be directed to the lookup/ login page (or if lookup/login is set to "off", to the registration form enabled with progressive lookup functionality) where they can log in or complete registration. 26 26 27 -Th esecookies existin two domains: the“local”domainforyourwebsiteorone of yourwebsites,andthe“central”domain([[onecount.net>>url:http://onecount.net||shape="rect"]]).ONEcount isdesignedformulti-siteidentification;auserwhologsinonyourSiteA, can also be logged in onyour SiteB via thecentral domain cookie.31 +This widget also allows users who have clicked on a smartlink(% style="color: rgb(255,0,0);" %)*(%%) to automatically be logged in to ONEcount. The system will identify the user and set a cookie for her/him. Any subsequent action by that user on the site will then be tracked and attributed to that user (via tracking widget). These users are included in statistics for Known Users. Note that if a user goes directly to the website (not directed there by a smartlink) and is NOT logged in, he/she will NOT be identified and tracked as a Known User. A user must be logged in to be identified. 28 28 29 - When the page loads,the ONEcountwidgetchecks the localdomain for the tmpcookie. If the user is visiting yoursite forthe first time, he or she may not have a local domain tmpcookie. The ONEcount widget then checksthe ONEcount centraldomain ([[onecount.net>>url:http://onecount.net||shape="rect"]])to see if the user has a first-party tmpcookie in that domain. If there is a tmpcookie in the central domain, the ONEcountwidget reloads the page and sets a tmpcookie in the local domain. When a user is identified through a registration, cookie-sync or link-click, the OCID cookie is created inboththe local andcentral domains duringthe subsequent page load.33 +This widget also tracks all web activity. 30 30 31 - ~*~*Please note thattheseentraldomaincookiesare//customer-specific//,andwe donotsharethosecookiesbetweencustomers.35 +This widget must be embedded inside the head section(<head></head>) of the website and should be placed BEFORE any other third party trackers (like Google analytics) or ad network codes and AFTER the title meta tag. 32 32 33 -The main ONEcount widget is as follows:37 +(% style="color: rgb(255,0,0);" %)//*****//(% style="color: rgb(0,0,0);" %)//A smartlink is any link that has parameters for identifying the user appended to the end of the URL. These parameters vary based on the email marketing platform you use (e.g. ONEcount's integrated Email Engine, Real Magnet/Magnet Mail, Exact Target, Silverpop, etc.) Upon clicking on a smartlink, two things will happen: 1) the user will be authenticated automatically for access-controlled content; and 2) the user will be identified in the system as a ONEcount user and a cookie will be set, allowing you to track as a Known user all activities across your online properties. //(%%)//*See Smartlinks and Other Form Linkouts// //documentation for more information on smartlinks.// 34 34 35 - <script id="oc-widget-main"src="https:~/~/validate.onecount.net/js/oc.min.js#%%%%%%%%%%%%%%%%"></script>39 +=== Automation Widget === 36 36 37 - MostUS-basedcustomers will getthe fastestresponse downloading thewidgetfromour dataentersinNewJerseyandIllinoisusingtheURLabove.CustomerswithapresenceoutsidetheUnitedStatesmay experiencelowerlatency by downloadingtheainONEcount widgetfrom our global CDN. To dothat, simply substitute the hostname"cdn.onecount.net" for "validate.onecount.netin theURL above. Asillustrated here:41 +Automation scripts are snippets of javascript code that allow ONEcount to target actions (like ad target, popup target etc). This piece of javascript determines and outputs any automated action to the browser. 38 38 39 - <script id="oc-widget-main"src="https:~/~/cdn.onecount.net/js/oc.min.js#%%%%%%%%%%%%%%%%"></script>43 +This snippet is placed inside head (<head></head>) and SHOULD BE PLACED AFTER any ad network slot definition code (DFP). 40 40 41 - Thewidgetincludesa uniquecustomer identifier thatwill be unique toyour installationofONEcount. You should place the widget in the headerof the root templateof yourwebsite(s) so it canload on every page you would like ONEcount to track.45 +See Widget Bulder documentation for more information. 42 42 43 -The main widget should be placed in the document header, after the Title and Meta Keywords tags so that these values can be available to the ONEcount widget when a user visits a page. 44 - 45 -If you are using any third-party tracking or measuring pixels (ie., Google Analytics, Adobe, etc.), you should place these pixels after the ONEcount pixel. 46 - 47 -This is to avoid double-counting page views from first time visitors. 48 - 49 -In other words, the following order: 50 - 51 -<HTML> 52 -<HEAD> 53 -<TITLE>title</TITLE> 54 -Google Analytics Widget 55 -ONEcount Widget 56 - 57 -Would result in Google Analytics recording two page impressions for a first-time site visitor, because GA would count the initial load, and then record an additional page load after the redirect. 58 - 59 -This order: 60 - 61 -<HTML> 62 -<HEAD> 63 -<TITLE>title</TITLE> 64 -ONEcount Widget 65 -Google Analytics Widget 66 - 67 -Will allow ONEcount to reload the page for first-time visitors prior to the GA widget loading, resulting in a single impression. 68 - 69 -If you're concerned about how the page reload impacts user experience, keep in mind two things: 70 - 71 -1) The redirect only happens once per user, per device. 72 - 73 -2) If the widget is placed properly, the user won't experience the redirect. As you can see from the placement above, the ONEcount widget is delivered prior to any content, so the user experience won't be interrupted. 74 - 75 -3) The redirect is required in order to get around Apple's Intelligent Tracking Protection software, which limits the life-span of even first-party cookies that are set in Javascript. During the redirect, ONEcount's first-party cookies are set by the server, making them immune to ITP. For more info on this issue, click [[here.>>url:https://cookiesaver.io/archives/analytics-guides/how-safari-itp-impacts-cookies/||shape="rect"]] 76 - 77 -Once the widget is placed on your pages, you will see a number of pixels load from the [[onecount.net>>url:http://onecount.net||shape="rect"]] domain each time the page loads. Most of these pixels load asynchronously, meaning in parallel, and should not impact your page load at all. 78 - 79 -(% style="color:#ff0000" %)//*//(% style="color:#000000" %)//A smartlink is any link that has parameters for identifying the user appended to the end of the URL. These parameters vary based on the email marketing platform you use (e.g. ONEcount's integrated Email Engine, Real Magnet/Magnet Mail, Exact Target, Silverpop, etc.) Upon clicking on a smartlink, two things will happen: 1) the user will be authenticated automatically for access-controlled content; and 2) the user will be identified in the system as a ONEcount user and a cookie will be set, allowing you to track as a Known user all activities across your online properties. //(%%)//*See Smartlinks and Other Form Linkouts// //documentation for more information on smartlinks.// 80 - 81 - 82 -=== NO LONGER USED: The following widget is no longer needed, 05/15/2022 === 83 - 84 -=== --Automation Widget-- === 85 - 86 ---Automation scripts are snippets of javascript code that allow ONEcount to target actions (like ad target, popup target etc). This piece of javascript determines and outputs any automated action to the browser.-- 87 - 88 ---This snippet is placed inside head (<head></head>) and SHOULD BE PLACED AFTER any ad network slot definition code (DFP).-- 89 - 90 ---See Widget Bulder documentation for more information.-- 91 - 92 92 === IVT Tracker and Noscript Tag === 93 93 94 94 _**The IVT tracker snippet identifies potential IVT traffic, and the noscript tag is needed to track requests when javascript is disabled.** _ ... ... @@ -99,67 +99,57 @@ 99 99 100 100 === Banner Trackers === 101 101 102 -Banner widgets are used to track and report banner activity. The banner widgets also track whether banner ads are "in view" on the user's screen. This is accomplished by a specific pixel that "checks-in" with ONEcount every three seconds to report whether the banner is still in view. This URL (v_js.php) may appear in the lower-left of your browser screen each time it is called, making it appear that v_js.php is loading and potentially slowing down the loading of the web page. This is not the case. If you view the load time in the developer tools of your browser, you will see this pixel is firing repeatedly, usually taking less than 10ms. Also, this pixel fires asynchronously, meaning in parallel with other elements on the page. So there is no impact on site performance from this pixel.57 +Banner widgets are used to track and report banner activity. 103 103 104 104 There are two banner platforms supported within ONEcount: OpenX and DFP (Premium and Small Business). 105 105 106 106 Widget Builder documentation provides widgets and directions for both platforms. 107 107 108 -=== ONEcountPixelfor Moat ===63 +=== Third Party Trackers Modifications === 109 109 110 - ONEcount can collectadviewabilitydatafromMoat'srealtime pixel.In orderto senddatato ONEcount,Moatcanfire apixel like like thatintheWidget Builder to senddata to ONEcount.65 +Usually websites will have third party trackers like Google Analytics, etc. installed on their website. A small piece of code needs to be added to those third party trackers so that ONEcount can pass the original referrer to those systems. 111 111 112 - ===ContentMetaTags===67 +We provide the code that needs to be added to your Google analytics code. See Widget Builder documenation. 113 113 114 - ONEcountuses contentmeta tags fromyour webpages to determinethe typeof content users areconsuming.In orderfor ONEcounttonderstand the engagement usersarehaving onyoursite, you shouldconfigurespecifickeywords inhemetatagsinyourwebpages that represent whatthe contentis about.69 +If any other third party trackers are being used on your website, please let your ONEcount account manager know ahead of time. 115 115 116 - Forexample, if youhave anarticleabout swimming pools,you might use keywordslike "pool," "swimming," "water,"etc.71 +=== ONEcount Pixel for Moat === 117 117 118 - Therearethreewaysto tell ONEcountwhattypeofcontent is onyourwebpage:73 +ONEcount can collect ad viewability data from Moat's realtime pixel. In order to send data to ONEcount, Moat can fire a pixel like like that in the Widget Builder to send data to ONEcount. 119 119 120 -<meta name="oc:keywords" content="swimming,pool,swimming pool,water" /> 121 121 122 -<meta property="oc:keywords" content="swimming,pool,swimming pool,water" /> 123 123 124 -ONEcount will accept three different properties: keywords, og:keywords, and oc:keywords. 125 - 126 - 127 - 128 - 129 129 {{id name="End ScreenSteps Content"/}} 130 130 {{/layout-cell}} 131 131 132 132 {{layout-cell}} 133 - 81 +(% style="margin-left: 30.0px;" %) 82 +== **More System and Setup Information** == 134 134 135 -{{panel title="On this page:"}} 136 -{{toc style="square"/}} 137 -{{/panel}} 138 - 139 -{{panel borderStyle="solid" title="More System and Setup Information"}} 140 -{{expand title="Click here to expand..."}} 141 -[[ONEcount Cookies>>url:http://bos-jira01-cl01.onecount.net:8090/pages/viewpage.action?pageId=65727||shape="rect"]] 84 +{{expand title="More Systen and Setup Info"}} 85 +(% style="margin-left: 30.0px;" %) 86 +====== [[ONEcount Cookies>>url:http://bos-jira01-cl01.onecount.net:8090/pages/viewpage.action?pageId=65727||shape="rect"]] 142 142 \\[[Widget Implementation>>url:http://bos-jira01-cl01.onecount.net:8090/pages/viewpage.action?pageId=65622||shape="rect"]] 143 143 \\[[Widget Builder>>url:http://bos-jira01-cl01.onecount.net:8090/pages/viewpage.action?pageId=65735||shape="rect"]] 144 -\\[[doc:ONEcount Javascript Widgets]] 145 -\\[[ONEcount Javascript Widget Changes>>url:http://bos-jira01-cl01.onecount.net:8090/pages/viewpage.action?pageId=65751||shape="rect"]] 146 -\\[[url:http://bos-jira01-cl01.onecount.net:8090/pages/viewpage.action?pageId=65735]][[Configuration Manager>>url:http://bos-jira01-cl01.onecount.net:8090/pages/viewpage.action?pageId=65754||shape="rect"]] 147 -\\[[url:http://bos-jira01-cl01.onecount.net:8090/pages/viewpage.action?pageId=65735]][[Smartlinks, Brand Codes, and Other Form Linkouts>>url:http://bos-jira01-cl01.onecount.net:8090/pages/viewpage.action?pageId=65829||shape="rect"]][[url:http://bos-jira01-cl01.onecount.net:8090/pages/viewpage.action?pageId=65735||shape="rect"]] 148 -[[ONEcount SSL and non-SSL Client Brand Pages>>url:http://bos-jira01-cl01.onecount.net:8090/display/OD/ONEcount+SSL+and+non-SSL+Client+Brand+Pages||shape="rect"]] 149 -\\[[url:http://bos-jira01-cl01.onecount.net:8090/pages/viewpage.action?pageId=65735]][[OpenX Zone Setup for Banner Tracking and Viewability>>url:http://bos-jira01-cl01.onecount.net:8090/display/OD/OpenX+Zone+Setup+for+Banner+Tracking+and+Viewability||shape="rect"]] 150 -\\[[url:http://bos-jira01-cl01.onecount.net:8090/pages/viewpage.action?pageId=65735]][[DFP Small Business – Create Key/Value Pair for Ad Targeting>>url:http://bos-jira01-cl01.onecount.net:8090/pages/viewpage.action?pageId=65873||shape="rect"]] 151 -\\[[url:http://bos-jira01-cl01.onecount.net:8090/pages/viewpage.action?pageId=65735]][[DFP Premium – Create Key/Value Pair for Ad Targeting>>url:http://bos-jira01-cl01.onecount.net:8090/pages/viewpage.action?pageId=65879||shape="rect"]] 152 -\\[[url:http://bos-jira01-cl01.onecount.net:8090/pages/viewpage.action?pageId=65735]][[Progressive Lookup>>url:http://bos-jira01-cl01.onecount.net:8090/display/OD/Progressive+Lookup||shape="rect"]] 153 -\\[[url:http://bos-jira01-cl01.onecount.net:8090/pages/viewpage.action?pageId=65735]][[Embedding Forms in Web Pages>>url:http://bos-jira01-cl01.onecount.net:8090/display/OD/Embedding+Forms+in+Web+Pages||shape="rect"]] 154 -\\[[url:http://bos-jira01-cl01.onecount.net:8090/pages/viewpage.action?pageId=65735]][[Overriding Lookup/Login Page Settings>>url:http://bos-jira01-cl01.onecount.net:8090/pages/viewpage.action?pageId=65896||shape="rect"]][[url:http://bos-jira01-cl01.onecount.net:8090/pages/viewpage.action?pageId=65735||shape="rect"]] 155 -[[Email Engine and Sender Score>>url:http://bos-jira01-cl01.onecount.net:8090/display/OD/Email+Engine+and+Sender+Score||shape="rect"]] 156 -\\[[url:http://bos-jira01-cl01.onecount.net:8090/pages/viewpage.action?pageId=65735]][[Global Features>>url:http://bos-jira01-cl01.onecount.net:8090/pages/viewpage.action?pageId=65905||shape="rect"]][[url:http://bos-jira01-cl01.onecount.net:8090/pages/viewpage.action?pageId=65735||shape="rect"]][[url:http://bos-jira01-cl01.onecount.net:8090/pages/viewpage.action?pageId=65751||shape="rect"]][[url:http://bos-jira01-cl01.onecount.net:8090/pages/viewpage.action?pageId=65751||shape="rect"]] 89 +[[\\>>url:http://bos-jira01-cl01.onecount.net:8090/pages/viewpage.action?pageId=65751||shape="rect"]] ====== 157 157 {{/expand}} 158 -{{/panel}} 159 159 160 - 161 - 162 - 92 +(% style="margin-left: 30.0px;" %) 93 +=== [[ONEcount Cookies>>url:http://bos-jira01-cl01.onecount.net:8090/pages/viewpage.action?pageId=65727||shape="rect"]] 94 +\\[[Widget Implementation>>url:http://bos-jira01-cl01.onecount.net:8090/pages/viewpage.action?pageId=65622||shape="rect"]] 95 +\\[[Widget Builder>>url:http://bos-jira01-cl01.onecount.net:8090/pages/viewpage.action?pageId=65735||shape="rect"]] 96 +[[\\ONEcount Javascript Widget Changes>>url:http://bos-jira01-cl01.onecount.net:8090/pages/viewpage.action?pageId=65751||shape="rect"]] 97 +\\[[Configuration Manager>>url:http://bos-jira01-cl01.onecount.net:8090/pages/viewpage.action?pageId=65754||shape="rect"]] 98 +\\[[Smartlinks, Brand Codes, and Other Form Linkouts>>url:http://bos-jira01-cl01.onecount.net:8090/pages/viewpage.action?pageId=65829||shape="rect"]] 99 +[[\\ONEcount SSL and non-SSL Client Brand Pages>>url:http://bos-jira01-cl01.onecount.net:8090/display/OD/ONEcount+SSL+and+non-SSL+Client+Brand+Pages||shape="rect"]] 100 +\\[[OpenX Zone Setup for Banner Tracking and Viewability>>url:http://bos-jira01-cl01.onecount.net:8090/display/OD/OpenX+Zone+Setup+for+Banner+Tracking+and+Viewability||shape="rect"]] 101 +\\[[DFP Small Business – Create Key/Value Pair for Ad Targeting>>url:http://bos-jira01-cl01.onecount.net:8090/pages/viewpage.action?pageId=65873||shape="rect"]] 102 +\\[[DFP Premium – Create Key/Value Pair for Ad Targeting>>url:http://bos-jira01-cl01.onecount.net:8090/pages/viewpage.action?pageId=65879||shape="rect"]] 103 +\\[[Progressive Lookup>>url:http://bos-jira01-cl01.onecount.net:8090/display/OD/Progressive+Lookup||shape="rect"]] 104 +\\[[Embedding Forms in Web Pages>>url:http://bos-jira01-cl01.onecount.net:8090/display/OD/Embedding+Forms+in+Web+Pages||shape="rect"]] 105 +\\[[Overriding Lookup/Login Page Settings>>url:http://bos-jira01-cl01.onecount.net:8090/pages/viewpage.action?pageId=65896||shape="rect"]] 106 +[[\\Email Engine and Sender Score>>url:http://bos-jira01-cl01.onecount.net:8090/display/OD/Email+Engine+and+Sender+Score||shape="rect"]] 107 +\\[[Global Features>>url:http://bos-jira01-cl01.onecount.net:8090/pages/viewpage.action?pageId=65905||shape="rect"]] === 163 163 {{/layout-cell}} 164 164 {{/layout-section}} 165 165 {{/layout}}
- Confluence.Code.ConfluencePageClass[0]
-
- id
-
... ... @@ -1,1 +1,1 @@ 1 -656 221 +65964 - url
-
... ... @@ -1,1 +1,1 @@ 1 -https://info.onecount.net//wiki/spaces/OD/pages/656 22/Widget Implementation-- all.min.js1 +https://info.onecount.net//wiki/spaces/OD/pages/65964/Widget Implementation (v12.x)