def METHOD_NAME(self, event):
    id_site = current_app.config['ZENODO_STATS_PIWIK_EXPORTER']\
        .get('id_site', None)
    url = ui_link_for('record_html', id=event.recid)
    visitor_id = event.visitor_id[0:16]
    _, record = fetch_record(event.recid)
    oai = record.get('_oai', {}).get('id')
    cvar = json.dumps({'1': ['oaipmhID', oai]})
    action_name = record.get('title')[:150]  # max 150 characters
    urlref = None
    if event.referrer:
        try:
            scheme, netloc, path, _, _ = urlsplit(event.referrer)
            urlref = urlunsplit((scheme, netloc, path, None, None))
        except Exception:
            pass
    params = dict(
        idsite=id_site,
        rec=1,
        url=url,
        _id=visitor_id,
        cid=visitor_id,
        cvar=cvar,
        cdt=event.timestamp,
        urlref=urlref,
        action_name=action_name
    )
    if event.to_dict().get('country'):
        params['country'] = event.country.lower()
    if event.to_dict().get('file_key'):
        params['url'] = ui_link_for('record_file', id=event.recid,
                                    filename=event.file_key)
        params['download'] = params['url']
    return '?{}'.format(urlencode(params, 'utf-8'))