Last modified by rayaan@one-count_com on 2022/11/02 19:35

From version 2.1
edited by Admin
on 2020/01/09 19:05
Change comment: There is no comment for this version
To version 4.1
edited by Admin
on 2022/05/13 10:03
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -1,4 +1,4 @@
1 -**The ONEcount SDK **is available from the main javascript widget that is loaded on the client site all.min. Using the  SDK, developers can interact with the platform as well as hooking into events.
1 +**The ONEcount SDK **is available from the main javascript widget that is loaded on the client site all.min. Using the  SDK, developers can interact with the platform as well as hooking into events. All of the code necessary for running the Javascript SDK is loaded through all.min.js.
2 2  
3 3  == Methods ==
4 4  
... ... @@ -96,7 +96,7 @@
96 96  **bypass**: **mixed** - this will return **false** if the user is not bypassed. If the user is bypassed then this will be an **object** with the properties type and value. (type ip will also have a **name** property). Type can be **url**, **user_agent**, **referrer** or **ip**. Value will contains the value based on which the bypassed occurred
97 97  )))
98 98  * (((
99 -**view_count**: **int** – return the user’s view count for products protected by a time frame. This is the count for the product the user is currently accessing. If he url being accessed is not from a product with a time limit, the value returned is -1
99 +**view_count**: **int** – view_count is only displayed for products/packages that are protected by a frequency/time frame. Some products have a limit like 10 articles per day or 3 articles per month, it will hold the value of articles that have been read. If the product is not protected by a frequency/time-frame, this value will be -1.
100 100  )))
101 101  * (((
102 102  **cookie**: **object** – return the user’s ONEcount cookie
Confluence.Code.ConfluencePageClass[0]
id
... ... @@ -1,1 +1,1 @@
1 -23331781
1 +77496563
url
... ... @@ -1,1 +1,1 @@
1 -https://info.onecount.net//wiki/spaces/OD/pages/23331781/ONEcount Javascript SDK Reference
1 +https://info.onecount.net//wiki/spaces/OD/pages/77496563/ONEcount Javascript SDK Reference