Add new analytics parameters pathSuffix
Some checks failed
openium/resgen.swift/pipeline/head There was a failure building this commit
Some checks failed
openium/resgen.swift/pipeline/head There was a failure building this commit
This commit is contained in:
@@ -169,7 +169,6 @@ class AnalyticsFileParser {
|
||||
|
||||
if target.contains(TrackerType.matomo.value) {
|
||||
// Path
|
||||
|
||||
guard let path = screen.path else {
|
||||
let error = AnalyticsError.missingElement("screen path")
|
||||
print(error.description)
|
||||
@@ -181,6 +180,10 @@ class AnalyticsFileParser {
|
||||
definition.path = path
|
||||
}
|
||||
|
||||
while definition.path.last == "/" {
|
||||
definition.path = String(definition.path.dropLast())
|
||||
}
|
||||
|
||||
return definition
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user