assembl.tasks.piwik module

class assembl.tasks.piwik.AutomaticPiwikBindingAtDiscussionCreation[source]

Bases: object

A IDiscussionCreationCallback that creates a Piwik site and user at discussion creation

assembl.tasks.piwik.piwik_SitesManager_addSite(piwik_url, piwik_api_token, siteName, urls, ecommerce='', siteSearch='', searchKeywordParameters='', searchCategoryParameters='', excludedIps='', excludedQueryParameters='', timezone='', currency='', group='', startDate='', excludedUserAgents='', keepURLFragments='', param_type='', settings='', excludeUnknownUrls='')[source]

Returns the Piwik id_site of the created website Warning: A new Piwik site is created everytime this method is called, even if another Piwik website already exists with the same name and URLs