Changes for page Widget Implementation -- oc.min.js
Last modified by Admin User on 2025/06/27 12:15
From version 41.1
edited by Admin User
on 2024/10/28 16:53
on 2024/10/28 16:53
Change comment:
There is no comment for this version
To version 33.1
edited by Admin
on 2022/05/13 11:43
on 2022/05/13 11:43
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 - Parent
-
... ... @@ -1,1 +1,0 @@ 1 -System Setup Detail and Technical Information - Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. admin1 +XWiki.Admin - Content
-
... ... @@ -1,10 +1,12 @@ 1 1 {{layout}} 2 2 {{layout-section ac:type="two_right_sidebar"}} 3 3 {{layout-cell}} 4 + 5 + 4 4 {{id name="Start ScreenSteps Content"/}} 5 -(% style="color: #808080" %)// In order to identify users and track activity, widgets must be embedded on every page of your web site .//7 +(% 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 .// 6 6 7 -(% style="color: #808080" %)//These widgets, specific to your site(s), and directions for placement are provided in the Widget Builder.//9 +(% style="color: rgb(128,128,128);" %)//These widgets, specific to your site(s), and directions for placement are provided in the Widget Builder.// 8 8 9 9 === ONEcount Library/Tracker === 10 10 ... ... @@ -12,34 +12,30 @@ 12 12 13 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. 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.17 +This widget also allows users who have clicked on a smartlink(% style="color: rgb(255,0,0);" %)*(%%) 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 17 This widget also tracks all web activity. 18 18 19 19 ==== ONEcount Library/Tracker Placement: ==== 20 20 21 -The main ONEcount widget, ( oc.min.js) is responsible for loading most of the code that ONEcount uses when a user visits your web site. It also takes the first step in identifying visitors to your web site, so it’s important it be placed properly on the site.23 +The main ONEcount widget, (all.min.js) is responsible for loading most of the code that ONEcount uses when a user visits your web site. It also takes the first step in identifying visitors to your web site, so it’s important it be placed properly on the site. 22 22 23 -Tag management platforms can be used as long as you can control where the ONEcount widget loads. Because order and placement is often difficult for users to configure, we recommend placing the ONEcount widget directly on the page , as the first element in the document <HEAD>.For further reading on fun with Google Tag Manager, read [[here.>>url:https://www.simoahava.com/gtm-tips/gtm-container-snippet-in-the-head/||shape="rect"]]25 +Tag management platforms can be used as long as you can control where the ONEcount widget loads. Because order and placement is often difficult for users to configure, we recommend placing the ONEcount widget directly on the page. 24 24 25 -ONEcount uses first-party cookies to track user behavior and target users. There are two main cookies that are important here: the OCID cookie, which identifies a user who exists as a user in the ONEcount database (ie., a “known” user), and the tmpcookie, which is a tracking cookie assigned to all users, known and unknown. If a user has a tmpcookie in their browser, ONEcount can track and target the user. If the user also has an OCID cookie in their browser, ONEcount can match that browser to a record in your database. 27 +ONEcount uses first-party cookies to track user behavior and target users. There are two main cookies that are important here: the OCID cookie, which identifies a user who exists as a user in the ONEcount database (ie., a “known” user), and the tmp-cookie, which is a tracking cookie assigned to all users, known and unknown. If a user has a tmp-cookie in their browser, ONEcount can track and target the user. If the user also has an OCID cookie in their browser, ONEcount can match that browser to a record in your database. 26 26 27 27 These cookies exist in two domains: the “local” domain for your web site or one of your web sites, and the “central” domain ([[onecount.net>>url:http://onecount.net||shape="rect"]]). ONEcount is designed for multi-site identification; a user who logs in on your Site A, can also be logged in on your Site B via the central domain cookie. 28 28 29 -When the page loads, the ONEcount widget checks the local domain for the tmpcookie. If the user is visiting your site for the first time, he or she may not have a local domain tmpcookie. The ONEcount widget then check sthe ONEcount central domain ([[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 ONEcount widget 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 in both the local and central domainsduring the subsequent page load.31 +When the page loads, the ONEcount widget checks the local domain for the tmp cookie. If the user is visiting your site for the first time, he or she may not have a local domain tmp cookie. The ONEcount widget then check the ONEcount central domain ([[onecount.net>>url:http://onecount.net||shape="rect"]]) to see if the user has a first-party tmp cookie in that domain. If there is a tmp cookie in the central domain, the ONEcount widget reloads the page and sets a tmp cookie in the local domain. When a user is identified through a registration, cookie-sync or link-click, the OCID cookie is created in both the local and central domains. 30 30 31 31 ~*~*Please note that these central domain cookies are //customer-specific//, and we do not share those cookies between customers. 32 32 33 33 The main ONEcount widget is as follows: 34 34 35 -<script id="oc-widget-main" src="https:~/~/validate.onecount.net/js/ oc.min.js#%%%%%%%%%%%%%%%%"></script>37 +<script id="oc-widget-main" src="https:~/~/validate.onecount.net/js/all.min.js#%%%%%%%%%%%%%%%%"></script> 36 36 37 - MostUS-basedcustomerswill get the fastestresponse downloadingthewidgetfromourdata centersinNew Jerseyand Illinoisusingthe URL above.Customerswith apresenceoutsideheUnitedStatesmayexperiencelowerlatencyby downloadingthein ONEcountwidgetfromourglobalCDN.Todothat,simplysubstitutethehostname"cdn.onecount.net"for"validate.onecount.netinthe URL above.As illustrated here:39 +It includes a unique customer identifier that will be unique to your installation of ONEcount. You should place the widget in the header of the root template of your web site(s) so it can load on every page you would like ONEcount to track. 38 38 39 -<script id="oc-widget-main" src="https:~/~/cdn.onecount.net/js/oc.min.js#%%%%%%%%%%%%%%%%"></script> 40 - 41 -The widget includes a unique customer identifier that will be unique to your installation of ONEcount. You should place the widget in the header of the root template of your web site(s) so it can load on every page you would like ONEcount to track. 42 - 43 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 44 45 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. ... ... @@ -48,9 +48,6 @@ 48 48 49 49 In other words, the following order: 50 50 51 -<HTML> 52 -<HEAD> 53 -<TITLE>title</TITLE> 54 54 Google Analytics Widget 55 55 ONEcount Widget 56 56 ... ... @@ -58,37 +58,27 @@ 58 58 59 59 This order: 60 60 61 -<HTML> 62 -<HEAD> 63 -<TITLE>title</TITLE> 64 64 ONEcount Widget 65 65 Google Analytics Widget 66 66 67 67 Will allow ONEcount to reload the page for first-time visitors prior to the GA widget loading, resulting in a single impression. 68 68 69 - Ifyou'reconcernedabout howthe pagereloadimpactsuserexperience,keepinmindtwo things:61 +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 paralle, and should not impact your page load at all. 70 70 71 - 1) The redirect only happens once per user, per device.63 +\\ 72 72 73 -2) Ifthewidget isplacedproperly,the userwon't experiencetheredirect. As youcanseefromtheplacement above,the ONEcountwidget isdeliveredprior to any content,sothe user experiencewon't be interrupted.65 +(% 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.// 74 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"]]67 +\\ 76 76 77 - Oncethe widget is placed on your pages, you will see a number of pixels load fromthe [[onecount.net>>url:http://onecount.net||shape="rect"]] domain eachtime the page loads. Most of these pixels load asynchronously,meaning in parallel, andshould not impact your pageload atall.69 +=== Automation Widget === 78 78 79 - (% style="color:#ff0000" %)//*//(% style="color:#000000" %)//A smartlinkisany linkthat hasparametersfor identifying the user appendedtothe endofthe URL. These parametersvarybasedonthe email marketingplatformyou use (e.g.ONEcount'sintegratedEmail Engine, Real Magnet/MagnetMail, ExactTarget, Silverpop, etc.) Uponclickingonasmartlink,two things will happen:1)the userwill beauthenticatedautomaticallyforaccess-controlled content;and2)theuserwill be identified in thesystemasa ONEcounterandacookie will be set, allowing youtrack as a Known userall activities across your onlineproperties.//(%%)//*See Smartlinks and OtherForm Linkouts// //documentation formore information on smartlinks.//71 +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. 80 80 73 +This snippet is placed inside head (<head></head>) and SHOULD BE PLACED AFTER any ad network slot definition code (DFP). 81 81 82 - === NO LONGER USED: Thefollowing widgetisnolongerneeded,05/15/2022 ===75 +See Widget Bulder documentation for more information. 83 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.** _ ... ... @@ -123,6 +123,7 @@ 123 123 124 124 ONEcount will accept three different properties: keywords, og:keywords, and oc:keywords. 125 125 111 +\\ 126 126 127 127 128 128 ... ... @@ -130,40 +130,59 @@ 130 130 {{/layout-cell}} 131 131 132 132 {{layout-cell}} 133 - 119 +\\ 134 134 135 - {{panel borderStyle="solid" title=""}}{{/panel}}121 +\\ 136 136 137 -{{panel borderStyle="solid" title=" "}}{{/panel}}123 +{{panel borderStyle="solid" title="Search all Documentation:"}} 138 138 125 + 126 +{{livesearch/}} 127 +{{/panel}} 128 + 129 +{{panel borderStyle="solid" title=" Search System and Setup Information:"}} 130 + 131 + 132 +{{pagetreesearch rootPage="System and Setup Information"/}} 133 +{{/panel}} 134 + 139 139 {{panel title="On this page:"}} 136 + 137 + 140 140 {{toc style="square"/}} 141 141 {{/panel}} 142 142 143 143 {{panel borderStyle="solid" title="More System and Setup Information"}} 144 -{{expand title="Click here to expand..."}}142 +{{expand}} 145 145 [[ONEcount Cookies>>url:http://bos-jira01-cl01.onecount.net:8090/pages/viewpage.action?pageId=65727||shape="rect"]] 146 146 \\[[Widget Implementation>>url:http://bos-jira01-cl01.onecount.net:8090/pages/viewpage.action?pageId=65622||shape="rect"]] 147 147 \\[[Widget Builder>>url:http://bos-jira01-cl01.onecount.net:8090/pages/viewpage.action?pageId=65735||shape="rect"]] 148 -\\[[doc:ONEcount Javascript Widgets]] 149 -\\[[ONEcount Javascript Widget Changes>>url:http://bos-jira01-cl01.onecount.net:8090/pages/viewpage.action?pageId=65751||shape="rect"]] 150 -\\[[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"]] 151 -\\[[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"]] 152 -[[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"]] 153 -\\[[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"]] 154 -\\[[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"]] 155 -\\[[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"]] 156 -\\[[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"]] 157 -\\[[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"]] 158 -\\[[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"]] 159 -[[Email Engine and Sender Score>>url:http://bos-jira01-cl01.onecount.net:8090/display/OD/Email+Engine+and+Sender+Score||shape="rect"]] 160 -\\[[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"]] 146 +\\[[doc:ONEcount Javascript Widgets]][[ 147 +\\ONEcount Javascript Widget Changes>>url:http://bos-jira01-cl01.onecount.net:8090/pages/viewpage.action?pageId=65751||shape="rect"]][[ 148 +\\>>url:http://bos-jira01-cl01.onecount.net:8090/pages/viewpage.action?pageId=65735||shape="rect"]][[Configuration Manager>>url:http://bos-jira01-cl01.onecount.net:8090/pages/viewpage.action?pageId=65754||shape="rect"]][[ 149 +\\>>url:http://bos-jira01-cl01.onecount.net:8090/pages/viewpage.action?pageId=65735||shape="rect"]][[Smartlinks, Brand Codes, and Other Form Linkouts>>url:http://bos-jira01-cl01.onecount.net:8090/pages/viewpage.action?pageId=65829||shape="rect"]][[ 150 +>>url:http://bos-jira01-cl01.onecount.net:8090/pages/viewpage.action?pageId=65735||shape="rect"]][[ 151 +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"]][[ 152 +\\>>url:http://bos-jira01-cl01.onecount.net:8090/pages/viewpage.action?pageId=65735||shape="rect"]][[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"]][[ 153 +\\>>url:http://bos-jira01-cl01.onecount.net:8090/pages/viewpage.action?pageId=65735||shape="rect"]][[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"]][[ 154 +\\>>url:http://bos-jira01-cl01.onecount.net:8090/pages/viewpage.action?pageId=65735||shape="rect"]][[DFP Premium – Create Key/Value Pair for Ad Targeting>>url:http://bos-jira01-cl01.onecount.net:8090/pages/viewpage.action?pageId=65879||shape="rect"]][[ 155 +\\>>url:http://bos-jira01-cl01.onecount.net:8090/pages/viewpage.action?pageId=65735||shape="rect"]][[Progressive Lookup>>url:http://bos-jira01-cl01.onecount.net:8090/display/OD/Progressive+Lookup||shape="rect"]][[ 156 +\\>>url:http://bos-jira01-cl01.onecount.net:8090/pages/viewpage.action?pageId=65735||shape="rect"]][[Embedding Forms in Web Pages>>url:http://bos-jira01-cl01.onecount.net:8090/display/OD/Embedding+Forms+in+Web+Pages||shape="rect"]][[ 157 +\\>>url:http://bos-jira01-cl01.onecount.net:8090/pages/viewpage.action?pageId=65735||shape="rect"]][[Overriding Lookup/Login Page Settings>>url:http://bos-jira01-cl01.onecount.net:8090/pages/viewpage.action?pageId=65896||shape="rect"]][[ 158 +>>url:http://bos-jira01-cl01.onecount.net:8090/pages/viewpage.action?pageId=65735||shape="rect"]][[ 159 +Email Engine and Sender Score>>url:http://bos-jira01-cl01.onecount.net:8090/display/OD/Email+Engine+and+Sender+Score||shape="rect"]][[ 160 +\\>>url:http://bos-jira01-cl01.onecount.net:8090/pages/viewpage.action?pageId=65735||shape="rect"]][[Global Features>>url:http://bos-jira01-cl01.onecount.net:8090/pages/viewpage.action?pageId=65905||shape="rect"]][[ 161 +>>url:http://bos-jira01-cl01.onecount.net:8090/pages/viewpage.action?pageId=65735||shape="rect"]][[ 162 +>>url:http://bos-jira01-cl01.onecount.net:8090/pages/viewpage.action?pageId=65751||shape="rect"]][[ 163 +>>url:http://bos-jira01-cl01.onecount.net:8090/pages/viewpage.action?pageId=65751||shape="rect"]] 161 161 {{/expand}} 162 162 {{/panel}} 163 163 167 +\\ 164 164 169 +\\ 165 165 166 - 171 +\\ 167 167 {{/layout-cell}} 168 168 {{/layout-section}} 169 169 {{/layout}}
- Confluence.Code.ConfluencePageClass[0]
-
- id
-
... ... @@ -1,1 +1,1 @@ 1 -6 56221 +66715808 - url
-
... ... @@ -1,1 +1,1 @@ 1 -https://info.onecount.net//wiki/spaces/OD/pages/6 5622/Widget Implementation-- all.min.js1 +https://info.onecount.net//wiki/spaces/OD/pages/66715808/Widget Implementation