Last modified by Admin User on 2025/10/31 14:02

From version 9.1
edited by mikef
on 2017/09/25 18:29
Change comment: There is no comment for this version
To version 12.1
edited by Admin User
on 2025/10/31 13:59
Change comment: There is no comment for this version

Summary

Details

Page properties
Parent
... ... @@ -1,0 +1,1 @@
1 +System Setup Detail and Technical Information
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.mikef
1 +XWiki.admin
Content
... ... @@ -5,7 +5,6 @@
5 5  
6 6  (updated 10/12/16)
7 7  
8 -
9 9  
10 10  **all.min.js**: This is the main script that's used for data collection, interacting with ONEcount.
11 11  
... ... @@ -13,7 +13,6 @@
13 13  
14 14  (% style="margin-left: 30.0px;" %)
15 15  **variables**: this is a container for variables that may be used by others objects in GCN
16 -\\
17 17  
18 18  (% style="margin-left: 30.0px;" %)
19 19  **cookie**: utility for interacting with cookies. Contains the following functions:
... ... @@ -26,8 +26,7 @@
26 26  **set**(**name**, **value**, **options**): create a cookie called **name** with value **value**. **options** is an object which can have **expires**, **path**, **domain** and **secure** properties
27 27  )))
28 28  * (((
29 -**remove**(**name**, **options**): removes the cookie **name**. **options** is an object which can have the property **sublevel
30 -\\**
27 +**remove**(**name**, **options**): removes the cookie **name**. **options** is an object which can have the property **sublevel**
31 31  )))
32 32  )))
33 33  
... ... @@ -49,8 +49,8 @@
49 49  )))
50 50  )))
51 51  
52 -
53 53  
50 +
54 54  (% style="margin-left: 30.0px;" %)
55 55  **script**: utility for interacting with scripts. Contains the following functions:
56 56  
... ... @@ -65,7 +65,7 @@
65 65  **addAsync**(**url**): create a script tag in the **body** whose **src** is **url**
66 66  )))
67 67  * (((
68 -**createScript**(**url**): helper function that create a script element whose src is url\\
65 +**createScript**(**url**): helper function that create a script element whose src is url
69 69  )))
70 70  )))
71 71  
... ... @@ -74,8 +74,7 @@
74 74  
75 75  * (((
76 76  * (((
77 -**call**(**f**, **options**): calls the function **f
78 -\\**
74 +**call**(**f**, **options**): calls the function **f**
79 79  )))
80 80  )))
81 81  
... ... @@ -88,7 +88,6 @@
88 88  )))
89 89  * (((
90 90  **off**(**type**, **listener**, **f**): removes the listener that executes the function **f** when event of type **type** occurs
91 -\\
92 92  )))
93 93  )))
94 94  
... ... @@ -101,7 +101,6 @@
101 101  )))
102 102  * (((
103 103  **string**(**count**): return a random string of length **count**
104 -\\
105 105  )))
106 106  )))
107 107  
... ... @@ -114,7 +114,6 @@
114 114  )))
115 115  * (((
116 116  **track**(**url**, **title**, **referer**): used to dynamically track a page with url **url**, title **title** and referer **referer**. This can be used with **infinite scroll**.
117 -\\
118 118  )))
119 119  )))
120 120  
... ... @@ -122,7 +122,7 @@
122 122  **ONEcount**: object for interacting with ONEcount application. This object contains many functions and objects.
123 123  
124 124  (% style="margin-left: 60.0px;" %)
125 -a.** Functions**:
118 +a.** Functions**:
126 126  
127 127  * (((
128 128  * (((
... ... @@ -163,15 +163,14 @@
163 163  )))
164 164  )))
165 165  
166 -
167 167  
160 +
168 168  (% style="margin-left: 60.0px;" %)
169 -b. ** Objects**
162 +b. ** Objects**
170 170  
171 171  * (((
172 172  * (((
173 173  **urls**: this object contains all the url used to interact with ONEcount. These url already have the **clientId** appended to them.
174 -\\
175 175  )))
176 176  * (((
177 177  **links:** this object contains links to the login/logout in ONEcount. Below are the functions:
... ... @@ -188,7 +188,6 @@
188 188  )))
189 189  * (((
190 190  This also contains other helper functions such as **setReturn**(**returnUrl**), **getReturnParam**(**returnUrl**), **encodeUrl**(**url**), **decodeUrl**(**url**)
191 -\\
192 192  )))
193 193  )))
194 194  )))
... ... @@ -197,62 +197,60 @@
197 197  * (((
198 198  **modal**: used to create a modal. This is being used for the form popup and the custom targeting pop up Contains the following functions:
199 199  
200 -*
191 +*
201 201  
202 202  **create**(**options**): create a modal. options is an object that contains the properties **html**, **styles**, **close**
203 203  
204 -*
195 +*
205 205  
206 206  **getCloseButton**(**options**): return the close button element. **options** is an object that contains the properties **close**
207 207  
208 -*
199 +*
209 209  
210 210  **getContent**(**options**): return a div that contains the content of the modal. **options** is an object that contains the properties **html**
211 211  
212 -*
203 +*
213 213  
214 -**loadStyles**(**options**): load css styles used for the modal. **options** is an object that contains the properties **style
215 -\\**
205 +**loadStyles**(**options**): load css styles used for the modal. **options** is an object that contains the properties **style**
216 216  )))
217 217  * (((
218 218  **functions**: this is an object contains functions used by other widgets on the page. Contains the following functions:
219 219  
220 -*
210 +*
221 221  
222 222  **dfp_sb_ad_capture**(**e**): used to prepare data for **DFP Small Business** viewability script. e is and event containing data about the data (**creativeId**, **lineItemId**)
223 223  
224 -*
214 +*
225 225  
226 -**get_user_data()**: returns the user's **ocid** and **tempid** in the format **ocid.tempid
227 -\\**
216 +**get_user_data()**: returns the user's **ocid** and **tempid** in the format **ocid.tempid**
228 228  )))
229 229  * (((
230 230  **form**: used to create a pop up form or for form embed. Contains one function and another object:
231 231  
232 -*
221 +*
233 233  
234 234  **embed**(**options**): this function is used to embed a form on the page
235 235  
236 -*
225 +*
237 237  
238 238  **popup:** this object is used to display the form as a popup. Contains the following functions:
239 239  
240 -*
229 +*
241 241  
242 242  **resize**(**id**): re sizes the form with document id **id**
243 243  
244 -*
233 +*
245 245  
246 246  **display**(options): displays the form as a pop up
247 247  
248 -*
237 +*
249 249  
250 250  **message**(event): used to interact with the form in the iframe via **postMessage**
251 251  )))
252 252  )))
253 253  
254 -
255 255  
244 +
256 256  On top of this **all.min.js** also contains a library used for browser fingerprinting as well as a library used for getting flash info on the browser. The content of this files used to spread in 3 different files and now they're in one place.
257 257  
258 258  **v.js:** This script is used to capture viewability data for **DFP Premium** and **Openx Open Source (Revive)**.
... ... @@ -261,57 +261,46 @@
261 261  
262 262  **fs.js:** This is the form scrapper script. Used to scrapped content from 3^^rd^^ party forms when they are being submitted.
263 263  
264 -
253 +=== GCN.onecount.track(url, title, referrer, resourceId, callback): ===
265 265  
266 -**__NOTE:__**  If page load speed is ever a concern, it is recommended to use a third party service (such as tools.pingdom.com). By doing so, it will generate report of all items loading on your webpage along with their load times. Simply copy and paste your page's URL into the designated field and a test will be conducted immediately. If any** oc.net** item exceeds a load speed of 500ms, please enter a Helpdesk ticket for us to review. Testing page load speeds is a very informative way of identifying items that are directly impacting page performance. It is worth mentioning that there will be items that continuously load in short spurts (ex. **v.js** for viewability data) however those short spurts do not negatively impact load speed performance.
255 +By default, ONEcount widgets track impressions on each page load. For sites where one article is displayed per page, this works fine. But in cases where articles are displayed on the same page, i.e. infinite scroll, only the first one is tracked.
267 267  
268 -
257 +This function is designed to provide an impression track for each article on a page. The function expects three parameters:
269 269  
270 -\\
271 -{{/layout-cell}}
259 +* **url**: The url of the article that is supposed to be tracked. **This is required**.
260 +* **title**: This should be the same as the **title tag** if the article was displayed alone on the page.
261 +* **referrer**: The referrer of article. (For infinite scroll this can be the previous article in the scroll.)
262 +* (((
263 +**resourceId**: this is optional. If set to a valid resourceId, that resource that will be used in order to perform gating or increase view_count. You can pass 0 in order to use the default resource associated with the url if any
264 +)))
265 +* (((
266 +**callback**: function to be called after a request has been sent to ONEcount. This can return the number of articles read by the user for products with limit in timeframe
267 +)))
272 272  
273 -{{layout-cell}}
274 -{{panel borderStyle="solid" title="Search all Documentation:"}}
269 +While the impressions are being tracked, ONEcount will also check whether the user's subscription is still valid or not (e.g. limit of X articles per month has been reached). If the subscription is not valid, then the user will be taken to the subscription page.
275 275  
271 +Let's assume I have a page where the first article is displayed when the page loads and three mores articles are displayed as the user scrolls down. The first article will be tracked by ONEcount, but for the three other articles, a call to GCN.onecount.track needs to be made to tell ONEcount that the articles have been displayed. The url should be the direct url of the article. The referrer should be the previous article's url.
276 276  
277 -{{livesearch/}}
278 -{{/panel}}
273 +=== GCN.onecount.gate(resourceId, callback): ===
279 279  
280 -{{panel borderStyle="solid" title=" Search System and Setup Information:"}}
275 +Gating is currently done based on a REGEX match of a url segment on page load. This function is designed to allow customers to gate content where gating can not be sufficiently managed using URL segments, or where content must be gated without a page load.
281 281  
277 +This function expects **two parameter** :
282 282  
283 -{{pagetreesearch rootPage="System and Setup Information"/}}
284 -{{/panel}}
279 +1. **resourceId** : this is the **resourceId** that will be used for gating and it's **required.**
280 +1. **callback:** this is a function that can be passed. The response from the gating request will be made available in the callback. The callback should expect one parameter which is a JSON object. The JSON object has a property called hasAccess which is a boolean (true/false). **true** means the user has access and **false** means he does not.
285 285  
286 -{{panel borderStyle="solid" title="More System and Setup Information"}}
287 -{{expand}}
288 -[[ONEcount Cookies>>url:http://bos-jira01-cl01.onecount.net:8090/pages/viewpage.action?pageId=65727||shape="rect"]]
289 -\\[[Widget Implementation>>url:http://bos-jira01-cl01.onecount.net:8090/pages/viewpage.action?pageId=65622||shape="rect"]]
290 -\\[[Widget Builder>>url:http://bos-jira01-cl01.onecount.net:8090/pages/viewpage.action?pageId=65735||shape="rect"]]
291 -\\[[\\\\ONEcount Javascript Widget Changes>>url:http://bos-jira01-cl01.onecount.net:8090/pages/viewpage.action?pageId=65751||shape="rect"]][[
292 -\\>>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"]][[
293 -\\>>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"]][[
294 ->>url:http://bos-jira01-cl01.onecount.net:8090/pages/viewpage.action?pageId=65735||shape="rect"]][[
295 -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"]][[
296 -\\>>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"]][[
297 -\\>>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"]][[
298 -\\>>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"]][[
299 -\\>>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"]][[
300 -\\>>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"]][[
301 -\\>>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"]][[
302 ->>url:http://bos-jira01-cl01.onecount.net:8090/pages/viewpage.action?pageId=65735||shape="rect"]][[
303 -Email Engine and Sender Score>>url:http://bos-jira01-cl01.onecount.net:8090/display/OD/Email+Engine+and+Sender+Score||shape="rect"]][[
304 -\\>>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"]][[
305 ->>url:http://bos-jira01-cl01.onecount.net:8090/pages/viewpage.action?pageId=65735||shape="rect"]][[
306 ->>url:http://bos-jira01-cl01.onecount.net:8090/pages/viewpage.action?pageId=65751||shape="rect"]][[
307 ->>url:http://bos-jira01-cl01.onecount.net:8090/pages/viewpage.action?pageId=65751||shape="rect"]]
308 -{{/expand}}
309 -{{/panel}}
282 +Resource Ids are available in ONEcount on the resource listing page.
310 310  
311 -
284 +To create a resource that uses this function, choose “Function” from the resource type pull-down, then enter a text return value in the box below. This return value is ignored for now, but may be used to trigger gating in the future.
312 312  
313 -
286 +When the function is called and the user is not subscribed to the product that the resource belongs to, he will be taken to the registration page in order to do so. If he is already subscribed to the product then nothing will happen.
314 314  
288 +
289 +
290 +**__NOTE:__**  If page load speed is ever a concern, it is recommended to use a third party service (such as tools.pingdom.com). By doing so, it will generate report of all items loading on your webpage along with their load times. Simply copy and paste your page's URL into the designated field and a test will be conducted immediately. If any** oc.net** item exceeds a load speed of 500ms, please enter a Helpdesk ticket for us to review. Testing page load speeds is a very informative way of identifying items that are directly impacting page performance. It is worth mentioning that there will be items that continuously load in short spurts (ex. **v.js** for viewability data) however those short spurts do not negatively impact load speed performance.
291 +
292 +
315 315  
316 316  {{/layout-cell}}
317 317  {{/layout-section}}
Confluence.Code.ConfluencePageClass[0]
id
... ... @@ -1,1 +1,1 @@
1 -50528279
1 +66131
url
... ... @@ -1,1 +1,1 @@
1 -https://info.onecount.net//wiki/spaces/OD/pages/50528279/ONEcount Javascript Widgets
1 +https://info.onecount.net//wiki/spaces/OD/pages/66131/ONEcount Javascript Widgets