Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Unable to set a Custom Statistic variable.

I am extracting a path from request URI using extract variable policy and on the basis of this variable I want to generate Custom Reports. In the Custom reports section this variable is not shown in Dimensions field.

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ExtractVariables async="false" continueOnError="true" enabled="true" name="__extract-statistics-request__">
    <Source>request</Source>
    <URIPath>
        <Pattern ignoreCase="true">/{resource}</Pattern>
    </URIPath>
    <IgnoreUnresolvedVariables>true</IgnoreUnresolvedVariables>
</ExtractVariables>

Statistic Collector Policy:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<StatisticsCollector async="false" continueOnError="false" enabled="true" name="AnalyzeData">
    <DisplayName>AnalyzeData</DisplayName>
    <Properties/>
    <Statistics>
        <Statistic name="resourceName" ref="resource" type="string"/>
    </Statistics>
</StatisticsCollector>

Statistic Variable is not shown here:

2536-untitled.png

Variable resource is getting set in trace:

2537-transaction.png

Please let me know if I am doing wrong anywhere.

Thanks in Advance!

1 5 409
5 REPLIES 5