Skip to main content
Contributor I
October 15, 2024
Solved

Removing Brackets on Tracking Number

  • October 15, 2024
  • 1 reply
  • 71 views

When I try to call the tracking number metric it shows up in brackets and apostrophes [see image below]. I want it to show up as just the number with no brackets of apostrophes. Can anyone else to edit it to fix this problem?

Here is the code that produces it:

<div style="text-align: center;"> </div>
<div style="text-align: center;"><span style="font-weight: bold;">Shipping Company:</span></div>
<div style="text-align: center;">{{ event|lookup:'Tracking Company'|default:'' }}</div>
<div style="text-align: center;">&nbsp;</div>
<div style="text-align: center;"><span style="font-weight: bold;">Tracking Number:</span></div>
<div style="text-align: center;">{{ event|lookup:'Tracking Numbers'|default:'' }}</div>
<div style="text-align: center;">&nbsp;</div>

 

This is what the input is
This is the output with the tracking number in the brackets

 

    This topic has been closed for replies.
    Best answer by bluesnapper

    Welcome to the community @JJSI 

    If there is only ever one tracking number, this should work:

    {{ event|lookup:'Tracking Numbers'|lookup: 0 }}

    Regards

    Andy 

    1 reply

    bluesnapper
    Partner
    Champion & Partner
    October 15, 2024

    Welcome to the community @JJSI 

    If there is only ever one tracking number, this should work:

    {{ event|lookup:'Tracking Numbers'|lookup: 0 }}

    Regards

    Andy 

    https://bluesnapper.com - Klaviyo Champion '24 & Partner