Created on 13 June 2023, about 1 year ago
Updated 22 June 2023, about 1 year ago

Problem/Motivation

We seem to have recently lost analytics tracking through this module. There seems to be some break between the way the module is adding the searchstax url and the way the API is using it that results in the request being a 404:

The SearchStax Drupal Module sets the analytics url to 'https://app.searchstax.com/':
https://git.drupalcode.org/project/searchstax/-/blob/1.x/js/searchstax.t...

The SearchStax analytics javascript combines it like this

  function getAPIUrl() {
    const base = typeof analyticsBaseUrl === "string" ? analyticsBaseUrl + "/api/v2/track/" : baseURL;
    return base;
  }
  

which ends up with https://app.searchstax.com//api/v2/track/ which because of the double slashes seems to be breaking the API.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

๐Ÿ› Bug report
Status

Fixed

Version

1.3

Component

Code

Created by

๐Ÿ‡บ๐Ÿ‡ธUnited States neclimdul Houston, TX

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024