Files
odoo_source/addons/website/security/ir.model.access.csv
T
David Beguin 6bec0e4d29 [IMP] website : add website visitors activity tracking
This commit adds the website_visitor model that will be used
to track website visitor activity (page viewed, number of visits and
more general info about the visitor (country, lang, etc..)

This model will, in later commit, be used to send chat requests
and push notification from the operators (or backend users)
directly to the visitor.

- A website_visitor is created once the visitor is requesting
a website.page that is tracked.
- A website_visitor is considered as connected if his last tracked
website_page request is within the last 5 minutes.
- The number of visits for a website_visitor is incremented
if his last tracked website_page request was at least 8 hours ago.
- A website_visitor is only handled by the system. Users cannot
create, edit or delete a website_visitor.
- A unique website_visitor is created per website.
That means that the same real person can triggers multiple visitor
creation if visits multiple websites.
This is because, for livechat purpose on later commit, for example,
the chat request can be created on the correct livecaht channel
(linked to the correct website)
- The visitor is recognized via his cookie (visitor_id). So if the visitor
flush his cookies, a new visitor will be created the next time he will
request a tracked website_page.
- Link user's res.partner to website.visitor.
    If a website_visitor log in
    (a visitor that has visitor_id in his cookie),
    the website_visitor is linked to the res.partner.
    The website visitor name is than adapted to match the name of
    the first res.partner linked to the visitor.
    A visitor can have multiple partners as the same session
    can be used by multiple person (one PC for a team for example).

To keep a detailed history of the visitor page views,
we add a website.visitor.page model that makes the link
between visitor and website.page but that keeps the visit date.
So that we can see if a visitor went mulitple times
on the same page and when. It's usefull to see his last page views.

Task ID : 2028059
PR #34624
2019-08-19 06:33:37 +00:00

1.6 KiB

1idnamemodel_id:idgroup_id:idperm_readperm_writeperm_createperm_unlink
2access_website_publicwebsitewebsite.model_website1000
3access_website_designerwebsitewebsite.model_websitegroup_website_designer1111
4access_website_menuaccess_website_menumodel_website_menu1000
5access_website_menu_designerWeb Menu Managermodel_website_menugroup_website_designer1111
6access_website_redirectaccess_website_redirectmodel_website_redirect1000
7access_website_redirect_designerWeb Redirect Managermodel_website_redirectgroup_website_designer1111
8access_website_pageaccess_website_pagemodel_website_page1000
9access_website_page_designerWeb Page Managermodel_website_pagegroup_website_designer1111
10access_websiteweb menu managerwebsite.model_websitegroup_website_designer1111
11access_website_ir_ui_viewaccess_website_ir_ui_viewmodel_ir_ui_viewgroup_website_designer1111
12access_seo_publicaccess_seo_publicmodel_website_seo_metadata1000
13access_seo_manageraccess_seo_managermodel_website_seo_metadatagroup_website_designer1111
14access_seo_designeraccess_seo_designermodel_website_seo_metadatagroup_website_designer1111
15access_website_visitor_designeraccess_website_visitor_designermodel_website_visitorwebsite.group_website_designer1000
16access_website_visitor_systemaccess_website_visitor_systemmodel_website_visitorbase.group_system1111
17access_website_visitor_page_designeraccess_website_visitor_page_designermodel_website_visitor_pagewebsite.group_website_designer1000
18access_website_visitor_page_systemaccess_website_visitor_page_systemmodel_website_visitor_pagebase.group_system1111