#1325 closed Bug/Fehler (fixed)
Smarty: Google Analytics Funktion: Nicht definierte Variabe $account_domain bei Google Universal Analytics
| Reported by: | Archetim | Owned by: | Gerhard Waldemair |
|---|---|---|---|
| Priority: | hoch | Milestone: | modified-shop-2.0.4.0 |
| Component: | Module | Version: | 2.0.3.0 |
| Keywords: | Cc: | ||
| Blocked By: | Blocking: |
Description (last modified by )
Hi,
ich habe in der Funktion "includes/external/smarty/plugins/function.googleanalytics.php" folgende Meldung im Log gefunden:
E_NOTICE : LoggingManager: Undefined variable: account_domain in File: /var/www/vhosts/mts-shop.eu/httpdocs/includes/external/smarty/plugins/function.googleanalytics.php on Line: 108
Die Variable $account_domain ist nirgendwo definiert oder belegt.
Ich habe das jetzt einmal mit Werten aus der Session gelöst.
$account_domain = $_SESSION['tracking']['http_referer']['host'];
Damit wird die korrekte Domain in den Code-Block eingefügt und laut Google Analytics Debugger auch korrekt versendet.
In der aktuellen Version ist der Fehler ebenso enthalten.
Grüße
Rene
Attachments (0)
Change History (8)
comment:1 by , 8 years ago
| Description: | modified (diff) |
|---|
comment:2 by , 8 years ago
| Priority: | normal → hoch |
|---|
comment:3 by , 8 years ago
comment:5 by , 8 years ago
| Resolution: | fixed |
|---|---|
| Status: | closed → reopened |
Wäre es nicht sinnvoll die URL aus der Konstante HTTP_SERVER zu beziehen?
comment:6 by , 8 years ago
| Resolution: | → fixed |
|---|---|
| Status: | reopened → closed |
Nach Überlegung nicht sinnvoll, da es einen um die Möglichkeit bringt hier einfach "auto" für das Feld "cookieDomain" einzutragen, siehe dazu: Configuring cookie field settings

Ich meine, dass dort eigentlich der Inhalt aus "TRACKING_GOOGLEANALYTICS_DOMAIN" rein sollte.