Wiki source code of Widget Implementation

Version 33.1 by Admin on 2022/05/13 11:43

Hide last authors
melanie@one-count_com 7.1 1 {{layout}}
2 {{layout-section ac:type="two_right_sidebar"}}
3 {{layout-cell}}
melanie@one-count_com 3.1 4
5
6 {{id name="Start ScreenSteps Content"/}}
melanie@one-count_com 6.1 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 .//
melanie@one-count_com 3.1 8
melanie@one-count_com 6.1 9 (% style="color: rgb(128,128,128);" %)//These widgets, specific to your site(s), and directions for placement are provided in the Widget Builder.//
melanie@one-count_com 3.1 10
melanie@one-count_com 5.1 11 === ONEcount Library/Tracker ===
melanie@one-count_com 3.1 12
13 This javascript snippet controls gating/access, cookie setting, and handles web tracking_**.**_
14
15 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
Admin 33.1 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.
melanie@one-count_com 3.1 18
19 This widget also tracks all web activity.
20
Admin 32.1 21 ==== ONEcount Library/Tracker Placement: ====
melanie@one-count_com 3.1 22
Admin 32.1 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.
24
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.
26
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.
28
29 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.
30
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.
32
33 ~*~*Please note that these central domain cookies are //customer-specific//, and we do not share those cookies between customers.
34
35 The main ONEcount widget is as follows:
36
37 <script id="oc-widget-main" src="https:~/~/validate.onecount.net/js/all.min.js#%%%%%%%%%%%%%%%%"></script>
38
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.
40
41 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.
42
43 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.
44
45 This is to avoid double-counting page views from first time visitors.
46
47 In other words, the following order:
48
49 Google Analytics Widget
50 ONEcount Widget
51
52 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.
53
54 This order:
55
56 ONEcount Widget
57 Google Analytics Widget
58
59 Will allow ONEcount to reload the page for first-time visitors prior to the GA widget loading, resulting in a single impression.
60
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.
62
63 \\
64
melanie@one-count_com 3.1 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.//
66
Admin 32.1 67 \\
68
melanie@one-count_com 5.1 69 === Automation Widget ===
melanie@one-count_com 3.1 70
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.
72
73 This snippet is placed inside head (<head></head>) and SHOULD BE PLACED AFTER any ad network slot definition code (DFP).
74
75 See Widget Bulder documentation for more information.
76
melanie@one-count_com 5.1 77 === IVT Tracker and Noscript Tag ===
melanie@one-count_com 3.1 78
79 _**The IVT tracker snippet identifies potential IVT traffic, and the noscript tag is needed to track requests when javascript is disabled.** _
80
81 This snippet is placed inside body tag. Usually putting just before the end body tag (</body>) is advised.
82
83 See Widget Builder documentation for more information.
84
melanie@one-count_com 5.1 85 === Banner Trackers ===
melanie@one-count_com 3.1 86
Admin 33.1 87 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.
melanie@one-count_com 3.1 88
89 There are two banner platforms supported within ONEcount: OpenX and DFP (Premium and Small Business).
90
91 Widget Builder documentation provides widgets and directions for both platforms.
92
melanie@one-count_com 5.1 93 === ONEcount Pixel for Moat ===
melanie@one-count_com 3.1 94
95 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.
96
Admin 30.1 97 === Content Meta Tags ===
melanie@one-count_com 3.1 98
Admin 30.1 99 ONEcount uses content meta tags from your web pages to determine the type of content users are consuming. In order for ONEcount to understand the engagement users are having on your site, you should configure specific keywords in the meta tags in your web pages that represent what the content is about.
melanie@one-count_com 3.1 100
Admin 30.1 101 For example, if you have an article about swimming pools, you might use keywords like "pool," "swimming," "water," etc.
102
103 There are three ways to tell ONEcount what type of content is on your web page:
104
105 <meta name="oc:keywords" content="swimming,pool,swimming pool,water" />
106
107 <meta property="oc:keywords" content="swimming,pool,swimming pool,water" />
108
109 ONEcount will accept three different properties: keywords, og:keywords, and oc:keywords.
110
111 \\
112
113
114
melanie@one-count_com 3.1 115 {{id name="End ScreenSteps Content"/}}
melanie@one-count_com 7.1 116 {{/layout-cell}}
117
118 {{layout-cell}}
Admin 30.1 119 \\
melanie@one-count_com 27.1 120
Admin 30.1 121 \\
melanie@one-count_com 27.1 122
melanie@one-count_com 26.1 123 {{panel borderStyle="solid" title="Search all Documentation:"}}
melanie@one-count_com 13.1 124
melanie@one-count_com 22.1 125
126 {{livesearch/}}
melanie@one-count_com 26.1 127 {{/panel}}
melanie@one-count_com 22.1 128
melanie@one-count_com 26.1 129 {{panel borderStyle="solid" title=" Search System and Setup Information:"}}
melanie@one-count_com 13.1 130
131
melanie@one-count_com 25.1 132 {{pagetreesearch rootPage="System and Setup Information"/}}
melanie@one-count_com 26.1 133 {{/panel}}
melanie@one-count_com 17.1 134
melanie@one-count_com 26.1 135 {{panel title="On this page:"}}
melanie@one-count_com 13.1 136
melanie@one-count_com 25.1 137
138 {{toc style="square"/}}
melanie@one-count_com 26.1 139 {{/panel}}
melanie@one-count_com 25.1 140
melanie@one-count_com 26.1 141 {{panel borderStyle="solid" title="More System and Setup Information"}}
142 {{expand}}
melanie@one-count_com 15.1 143 [[ONEcount Cookies>>url:http://bos-jira01-cl01.onecount.net:8090/pages/viewpage.action?pageId=65727||shape="rect"]]
melanie@one-count_com 8.1 144 \\[[Widget Implementation>>url:http://bos-jira01-cl01.onecount.net:8090/pages/viewpage.action?pageId=65622||shape="rect"]]
melanie@one-count_com 15.1 145 \\[[Widget Builder>>url:http://bos-jira01-cl01.onecount.net:8090/pages/viewpage.action?pageId=65735||shape="rect"]]
melanie@one-count_com 23.1 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"]][[
melanie@one-count_com 11.1 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"]][[
melanie@one-count_com 12.1 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"]][[
melanie@one-count_com 25.1 162 >>url:http://bos-jira01-cl01.onecount.net:8090/pages/viewpage.action?pageId=65751||shape="rect"]][[
melanie@one-count_com 15.1 163 >>url:http://bos-jira01-cl01.onecount.net:8090/pages/viewpage.action?pageId=65751||shape="rect"]]
melanie@one-count_com 8.1 164 {{/expand}}
melanie@one-count_com 26.1 165 {{/panel}}
melanie@one-count_com 25.1 166
Admin 30.1 167 \\
melanie@one-count_com 25.1 168
Admin 30.1 169 \\
melanie@one-count_com 25.1 170
Admin 30.1 171 \\
melanie@one-count_com 7.1 172 {{/layout-cell}}
173 {{/layout-section}}
174 {{/layout}}