We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cc @ampproject/wg-analytics
In the following example, nested macro doesn't work properly
$REPLACE(CLIENT_ID(navigationStart)test, 'AD_', '')" resolves to client_id, note that test is dropped
$REPLACE(CLIENT_ID(navigationStart)test, 'AD_', '')"
client_id
test
$REPLACE(testCLIENT_ID(navigationStart), 'AD_', '')" resolves to test, note that client_id is dropped
$REPLACE(testCLIENT_ID(navigationStart), 'AD_', '')"
$REPLACE(NAV_TIMING(navigationStart, loadEventStart), 'AD_', '')" resolves to empty string, note that the nav_timing number is dropped.
$REPLACE(NAV_TIMING(navigationStart, loadEventStart), 'AD_', '')"
I believe there are two issues here
The text was updated successfully, but these errors were encountered:
:( Thanks for reporting.
Sorry, something went wrong.
This issue doesn't have a category which makes it harder for us to keep track of it. @calebcordry Please add an appropriate category.
Reported by @zikas :
I found the bug to be related to the issue here.
$IF(QUERY_PARAM(test), 1.$SUBSTR(TIMESTAMP, 0, 10)QUERY_PARAM(test), '') resolve to 1.
$IF(QUERY_PARAM(test), 1.$SUBSTR(TIMESTAMP, 0, 10)QUERY_PARAM(test), '')
1.
and
$IF(QUERY_PARAM(gclid), $SUBSTR(TIMESTAMP, 0, 10)QUERY_PARAM(gclid), '') resolve to 1234567890 (equals to $SUBSTR(TIMESTAMP,0,10)))
$IF(QUERY_PARAM(gclid), $SUBSTR(TIMESTAMP, 0, 10)QUERY_PARAM(gclid), '')
calebcordry
Successfully merging a pull request may close this issue.
cc @ampproject/wg-analytics
In the following example, nested macro doesn't work properly
$REPLACE(CLIENT_ID(navigationStart)test, 'AD_', '')"
resolves to
client_id
, note thattest
is dropped$REPLACE(testCLIENT_ID(navigationStart), 'AD_', '')"
resolves to
test
, note that client_id is dropped$REPLACE(NAV_TIMING(navigationStart, loadEventStart), 'AD_', '')"
resolves to empty string, note that the nav_timing number is dropped.
I believe there are two issues here
The text was updated successfully, but these errors were encountered: