Skip to content

Commit

Permalink
Remove trailing slash from plausible and fix event category for OAI-PMH
Browse files Browse the repository at this point in the history
  • Loading branch information
Steven-Eardley committed Mar 2, 2023
1 parent 79eff3d commit 9397946
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions portality/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -1297,7 +1297,7 @@
# root url of plausible
PLAUSIBLE_URL = "https://plausible.io"
PLAUSIBLE_JS_URL = PLAUSIBLE_URL + "/js/script.outbound-links.file-downloads.js"
PLAUSIBLE_API_URL = PLAUSIBLE_URL + "/api/event/"
PLAUSIBLE_API_URL = PLAUSIBLE_URL + "/api/event"
# site name / domain name that used to register in plausible
PLAUSIBLE_SITE_NAME = BASE_DOMAIN
PLAUSIBLE_LOG_DIR = None
Expand All @@ -1308,8 +1308,7 @@
TASKS_MONITOR_BGJOBS_FROM = "helpdesk@doaj.org"



##################################3
##################################
# Background monitor
# ~~->BackgroundMonitor:Feature~~

Expand Down
2 changes: 1 addition & 1 deletion portality/view/oaipmh.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def oaipmh(specified=None):
event_payload['action'] = verb

# Now we have enough information about the request to send to analytics.
plausible.send_event(app.config.get('GA_CATEGORY_OPENURL', 'OpenURL'),
plausible.send_event(app.config.get('GA_CATEGORY_OAI', 'OAI-PMH'),
**event_payload)

# call the appropriate protocol operation:
Expand Down

0 comments on commit 9397946

Please sign in to comment.