这是indexloc提供的服务,不要输入任何密码
Skip to content

Nested macro bug #20816

@zhouyx

Description

@zhouyx

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(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

  1. Nested macro doesn't handle number properly
  2. Nested macro doesn't handle concat string properly

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions