hide
: Your original content will stay where it is, but its container will be modified with css to hide a percentage of the content. Downsides : Users will be able to open the browser's console and remove the css rules.excerpt
: Your original content will be placed in a view holder and its container will have its content replaced by trimmed text (only X% of the text will be kept). The original content is not available from outside of Poool.js scope (even from console), and will be put back when onRelease
event is fired. Downsides : <style>
and <script>
tags inside parent are temporarily detached from trimmed text and put at the end. If you have various <script>
tags in your content, they won't necessarily be executed and may even throw javascript errors (such as with some ad scripts that still use obsolete javascript functions), leading to a blank page when unlocking content. This mode is also not recommended for single-page apps (Angular, React, Vue, ...). In these two cases, we suggest that you use hide
mode.custom
: Nothing will be done to your content and/or its container, but onLock
and onRelease
events will be fired so you can do your own processing.{return_url}
variable can be used to get the current URL.{user_id}
variable can be used to get the reader's Poool id.{return_url}
variable can be used to get the current URL.{user_id}
variable can be used to get the reader's Poool id.{cookies_enabled}
config option is false (cookies consent rejection).{return_url}
variable can be used to get the current URL.{user_id}
variable can be used to get the reader's Poool id.-1
, the popover will keep being displayed.hide
masking mode is used and after unlocking an article, Poool's paywall will try to calculate the height of the content to set it back to its default value.disable_content_height_calculation
is set to true
, the paywall won't try to calculate content height and will simply strip all CSS modifications applied to the parent container of the article.<head>
tag of the page).wait_for_dom_load
option is true
, the paywall will wait for the DOMContentLoaded
event to be fired.DOMContentLoaded
event of the page to be fired (if wait_for_dom_load
is set to true
).onError
event is triggered so that you can display a backup paywall.force_widget
is used or if the user clicks on No, thanks), by default reports will show statistics for this alternative action rather than the original one.onFacebookLoginClick
event is fired.onGoogleLoginClick
event is fired.5.7
or higher is required.ga()
tracking method.gtag()
tracking method.ATInternet.Tracker.Tag
constructor. See the ATInternet documentation for more information.onWidgetSeen
event), the popover will automatically disappear.popover_auto_hide
with the value set to false
to disable this behavior.return_url
query params is provided to the new url. Its default value is the current url.custom_return_url
to define your own custom return url.gift
, etc..) or automatically with invisible
.video
, viewpay
).question
or form
widgets).audit_load_timeout
config parameter is used to define the wait time (in milliseconds) for the Audit response.