All the Surprise Songs Taylor Swift Has Performed on The

0
39
All the Surprise Songs Taylor Swift Has Performed on The

[]
×

Skip to main content

Taylor Swift’s Eras Tour serves a surprise song (or two) at every stop.

Taylor Swift

Taylor Swift performs onstage for the opening night of The Eras Tour at State Farm Stadium on March 17, 2023 in Glendale, Arizona. Kevin Mazur/Getty Images for TAS Rights Management

Taylor Swift‘s Eras Tour set list features a surprise song (or two), so far performed during a mini acoustic set, on each date of the the superstar’s 2023 trek.

Guitar in hand and making her way to the end of the stage’s catwalk at March 17’s Eras kickoff in Glendale, Arizona, Swift revealed her intentions for the acoustic portion of her long-awaited live show. She’ll perform a surprise song that will not be played again on this tour — probably.

“The plan, the goal, would be to play different songs every single night and never repeat one. Right? So that when you heard one on this tour, you would know it’s the only time that I was going to play it in the acoustic set, unless — caveat — unless I mess it up so badly,” she said with a small laugh, “that I have to do it over again in some other city. Send your best wishes towards me that I don’t do that.”

The Eras Tour is her first real tour in five years, and the first time the prolific songwriter is getting to perform selections from Lover, Folklore, Evermore and Midnights to sold-out stadium crowds.

Eras Tour night one introduced a career-spanning, whopping 44-song setlist with a runtime of more than three hours, with Swift playing anywhere from one to eight tracks from all 10 of her full-length studio albums. The show’s nightly surprise is sure to keep her fans on their tallest tiptoes, waiting to hear what gem will be unveiled at their concert.

Below, check out the list of all the surprise songs she’s brought to The Eras Tour, courtesy of social media live streams and post-concert clips uploaded by Swifties in attendance. Bookmark this page, as the list will updated regularly as the tour goes on.

  • “Mirrorball”

    Taylor Swift Mirrorball Eras Tour Image Credit: Courtesy

    Performed at State Farm Stadium in Glendale, Arizona (March 17, 2023)

    “I was thinking about the first one I would play for you,” Swift said at the very first Eras Tour concert, to a crowd of fans who were still gloriously spoiler-free about what was in store for the rest of the show. “I was thinking about what song to play first, and I was thinking about how one of the songs that I wrote with you in mind during the pandemic was one of the first songs I wrote for Folklore, and it was me writing about how badly I craved the connection that I feel from the care that you have directed in my way. I’m trying to tell you I love you, and I’m babbling,” she noted. Swift tried again: “I was trying to think of sort of an eloquent way to say that I love you and I need your attention all the time, and I came up with ‘I’m a mirrorball.’” After the wordy intro, Swift begins singing “Mirrorball” at the 2:17 timestamp in the video above.

  • “Tim McGraw”

    Taylor Swift Image Credit: John Shearer/GI for TAS Rights Management

    Performed at State Farm Stadium in Glendale, Arizona (March 17, 2023)

    “I was thinking about tonight and how special this is,” Swift explained on the opening night of The Eras Tour, and then added, “So I thought it might be kind of fun to play the very first song I ever put out.” The crowd gladly sang along to her pretty piano rendition of her debut single, nearly 17 years after it was first released. “Tim McGraw” was the only track from her first album to make the Eras setlist in Arizona.

  • “This Is Me Trying”

    Taylor Swift This Is Me Trying Eras Tour Image Credit: Courtesy

    Performed at State Farm Stadium in Glendale, Arizona (March 18, 2023)

    “I keep forgetting what key it’s in — one second. It’s lost all concept to me,” Swift joked before launching into the emotional Folklore track as the first of two surprise songs, at the second show of The Eras Tour.

  • “State of Grace”

    Taylor Swift State of Grace Eras Tour Image Credit: Courtesy

    Performed at State Farm Stadium in Glendale, Arizona (March 18, 2023)

    Swift brought the Red album opener down to its roots as a piano ballad in Glendale. Her delicate vocals were echoed by a stadium of thousands joining in, making for a chilling moment of connection between a singer-songwriter and her fans.

  • “Our Song”

    Performed at Allegiant Stadium in Las Vegas (March 24, 2023)

    “I do get ideas from places. I actually saw an interview that Beabadoobee did — who is our amazing, brilliant opening act tonight — and they were saying, ‘Oh, you’re going on The Eras Tour. What song might you want to hear?’ And she was like, ‘I grew up listening to songs on her first album.’ And she named a specific song. So I figured, you know what, for her first show with us, I’ll play the specific song that she said she would want to hear. So this is a song I wrote for my ninth-grade talent show. It’s called ‘Our Song.’”

  • “Snow on the Beach”

    Performed at Allegiant Stadium in Las Vegas (March 24, 2023)

    “Lana Del Rey put out a new album. It’s called Did You Know That There’s a Tunnel Under Ocean Blvd. Guys, it’s so good. You probably already know that, but it’s just extraordinary. I just think she’s the best that we have. I think we need to make it a priority as a group to stream, buy, support this album and this artist. She knows I’m obsessed with her, and she was kind enough to make a song with me on Midnights called ‘Snow on the Beach’ because she’s a generous king. She did that for me, and I’ll never forget how nice she’s been to me. It’s so cool when you have favorite artists and they turn out to be so nice to you. I wanted to just do some promo for her, and also, in honor of this brilliant album that she just put out, I wanted to play ‘Snow on the Beach.’”

  • “Cowboy Like Me” (with Marcus Mumford)

    Performed at Allegiant Stadium in Las Vegas (March 25, 2023)

    “Las Vegas, Nevada, you are so lucky, because we do have a special guest with us tonight,” Swift told the sold-out crowd when introducing Mumford & Sons frontman Marcus Mumford. “Would you sing ‘Cowboy Like Me’ with me?” The duo paired up for the 2020 Evermore duet.

  • “White Horse”

    Performed at Allegiant Stadium in Las Vegas (March 25, 2023)

  • “Sad Beautiful Tragic”

    Performed at AT&T Stadium in Arlington, Texas (March 31, 2023)

    Swift worked in “Sad Beautiful Tragic” from Red to the setlist during her acoustic portion of the Arlington show. Strumming it on just an acoustic guitar, she introduced the song saying, “I love this one. When I love a song, I don’t care what anyone says.”

  • “Ours”

    Performed at AT&T Stadium in Arlington, Texas (March 31, 2023)

  • “Death By A Thousand Cuts”

    Performed at AT&T Stadium in Arlington, Texas (April 1, 2023)

  • “Clean”

    Performed at AT&T Stadium in Arlington, Texas (April 1, 2023)

  • “Speak Now”

    Performed at Raymond James Stadium in Tampa, Fla. (April 13, 2023)

    “I’ve been thinking a lot about one of my albums recently. One of my albums has been on my mind a lot … lots going on in my brain about it. So I thought I might play the title track of that album.”

  • “Treacherous”

    Performed at Raymond James Stadium in Tampa, Fla. (April 13, 2023)

  • “The Great War” (with Aaron Dessner)

    Performed at Raymond James Stadium in Tampa, Fla. (April 14, 2023)

    “This song really took on a new meaning when you guys made enough jokes about how you trying to get tickets for this tour felt like surviving the great war,” Swift joked prior to the debut live performance of the Midnights (3am Edition) track.

  • “You’re on Your Own, Kid”

    Performed at Raymond James Stadium in Tampa, Fla. (April 14, 2023)

  • “Mad Woman”

    Performed at Raymond James Stadium in Tampa, Fla. (April 15, 2023)

    “I have a really, really, really wonderful, incredible person in my life who I’ve been making music with,” Swift said, bringing Aaron Dessner out on her stage for a second time this tour and joining him at the piano bench. “…We wrote this song that I really love because it allowed me to get a lot off my chest, and now we’re gonna sing it for you — ’cause who doesn’t love a mad woman?”

  • “Mean”

    Performed at Raymond James Stadium in Tampa, Fla. (April 15, 2023)

    Swift picked up the guitar for surprise song No. 2 of the night, complimenting the particularly loud Tampa crowd. She explained that she thought she’d play a song they might know and want to sing along with. “Just thought that would be nice, which is the opposite of mean,” she quipped.

  • “Wonderland”

    Performed at NRG Stadium in Houston, Texas (April 21, 2023)

  • “You’re Not Sorry”

    Performed at NRG Stadium in Houston, Texas (April 21, 2023)

  • “A Place in This World”

    Performed at NRG Stadium in Houston, Texas (April 22, 2023)

    Going way back to her very early songwriting days, Swift introduced “A Place in This World” as a song she penned around the age of 13 — noting that she might relate to its lyrics even more 20 years later.

  • “Today Was a Fairytale”

    Performed at NRG Stadium in Houston, Texas (April 22, 2023)

    “You make every day on this tour feel like a fairytale,” Swift told her fans before performing the song, originally featured on the soundtrack for the 2010 film Valentine’s Day, on piano. (At the second of three Houston shows, she admitted that The Eras Tour has basically become her “entire personality.”)

  • “Begin Again”

    Performed at NRG Stadium in Houston, Texas (April 23, 2023)

    “We’ve come to the acoustic era,” Swift said as she set up for the two surprise songs of the evening at the end of the catwalk. Before launching into the Red track, she told the crowd, “I hope that if you know it, you sing along” — and they did.

  • “Cold as You”

    Performed at NRG Stadium in Houston, Texas (April 23, 2023)

    “No shade to the other songs on the album,” Swift joked, expressing an utmost love for the emotional ballad from her debut album, which she played at the piano for the night three Houston audience. “Cold as You” immediately trended on Twitter while she sang the song live on tour for the first time in a decade.

  • “The Other Side of the Door”

    Performed at Mercedes-Benz Stadium in Atlanta, Georgia (April 28, 2023)

    “This is one of my favorite moments in the show because it kind of keeps me on my toes,” Swift said to a wild crowd in Atlanta.

    “When I was rerecording my album Fearless, I looked back and I was listening to this one … I remember when I wrote this one I was so obsessed with this sort of, like, rant I put at the end of the song,” she said, hinting at the deep cut that was to come. “And I never, I don’t think I really got to perform it live. If I ever I ever did, it was not enough times, so I’d really love to play the song. It’s called ‘The Other Side of the Door.’”

  • “Coney Island”

    Performed at Mercedes-Benz Stadium in Atlanta, Georgia (April 28, 2023)

    A pretty long speech came before the first-ever solo (and first-ever at all) live performance of the heart-wrenching Evermore highlight, originally a duet with with Matt Berninger.

    “Any time I’m gonna talk about or even reference another artist, I feel inclined to tell you that if they’re not here, they’re not here,” she warned the crowd. “No one else is here. You are stuck with me. It’s only me. But I am gonna talk about another artist. I just feel like, you know, stadiums are huge and it’s important to really communicate, so that’s what I’m doing. I’m gonna talk about another artist who has an album that just came out that is so incredible. The National just had an album come out. This band has influenced me beyond my ability to verbalize how much they’ve influenced me — just lyrically, their ability to set a scene, their ability to tell a story. And obviously, Aaron Dessner is in The National and he has completely changed my life. I was lucky enough to be able to write a song with them for their new album, which is called the First Two Pages of Frankenstein. Check it out, stream it, buy it on vinyl. I love them so much. They’ve been so kind to me. So, I’m not gonna sing the song that we have on this new album — it’s called ‘The Alcott’ — check that out, though. But I am gonna sing ‘Coney Island.’”

  • “High Infidelity”

    Performed at Mercedes-Benz Stadium in Atlanta, Georgia (April 29, 2023)

    “Do you really wanna know where I was April 29th?” Swift improvised before beginning the actual song. “Atlanta, Georgia.”

  • “Gorgeous”

    Performed at Mercedes-Benz Stadium in Atlanta, Georgia (April 29, 2023)

    For her second surprise song of night two in Atlanta, Swift made “Gorgeous” the first Reputation track to get the acoustic treatment this tour.

  • “I Bet You Think About Me”

    Performed at Mercedes-Benz Stadium in Atlanta, Georgia (April 30, 2023)

  • “How You Get the Girl”

    Performed at Mercedes-Benz Stadium in Atlanta, Georgia (April 30, 2023)

  • “Sparks Fly”

    Performed at Nissan Stadium in Nashville, Tennessee (May 5, 2023)

    “I’ve been planning something for a while. You know how I love to plan things. You know how I love to surprise you… It’s my love language with you,” Swift teased during her first night in Nashville on The Eras Tour. “I plot, I scheme, I plan.”

    “Rather than me speaking about it,” she said with a grin, “I thought I would just show you — If you would direct your attention to the back screen.” The screen announced that Speak Now (Taylor’s Version) will be released on July 7, and Swift then launched into the album track “Sparks Fly” on acoustic guitar.

  • “Teardrops on My Guitar”

    Performed at Nissan Stadium in Nashville, Tennessee (May 5, 2023)

    Before playing the next surprise song at the piano, a selection from her debut, Swift reflected on her early years in Nashville, noting that she’d moved to the city while in eighth grade. “I’d been writing songs since I was 12, but when I think about Nashville I think about writing all the songs that would end up on my first album,” she told the crowd.

  • “Out of the Woods”

    Performed at Nissan Stadium in Nashville (May 6, 2023)

    “I think I saved a really good one for right now,” Swift, acoustic guitar in hand, teased the Nashville night two crowd. “You be the judge based on how loudly you scream. This one’s from 1989.”

  • “Fifteen”

    Performed at Nissan Stadium in Nashville (May 6, 2023)

    Sitting at the piano, Swift joked, “I feel like if I give you one piece of information you’d know exactly what song I was about to play,” before singing the Fearless classic “Fifteen” for her high school best friend Abigail, who was at the show.

  • “Would’ve, Could’ve, Should’ve”

    Performed at Nissan Stadium in Nashville, Tennessee (May 7, 2023)

    Swift welcomed “kind, wonderful genius” Aaron Dessner to the stage on a stormy night in Nashville to join her on the surprise song from the 3AM version of Midnights. “He was warned about the rain, and he did accept the challenge anyway,” she said.

    “Would’ve, Could’ve, Should’ve” was “one of our favorites when we made it,” Swift noted.

  • “Mine”

    Performed at Nissan Stadium in Nashville, Tennessee (May 7, 2023)

    “I want to play a song that when I wrote it, I was writing about all these relationship things that hadn’t happened yet,” Swift said from her seat at the piano. She described how “it’s crazy” to go back and listen to songs that at the time were rooted in “fantasy” but at her age now are relatable, and then introduced the Speak Now track that was coming next: “This is called ‘Mine,’” Swift said.

  • “Gold Rush”

    Performed at Lincoln Financial Field in Philadelphia, Pennsylvania (May 12, 2023)

    “I wanted to start out with this one in Philly because there was sort of a — I don’t know how large the debate was, but I did see the debate,” Swift told the audience, referencing the “Eagles T-shirt hanging from the door” lyrics from “Gold Rush.”

    “I saw some people wondering if it was the band the Eagles or the team the Eagles,” the singer added. “And I love the band the Eagles, but guys, like, come on, I’m from Philly.”

  • “Come Back… Be Here”

    Performed at Lincoln Financial Field in Philadelphia, Pennsylvania (May 12, 2023)

    “I take requests if they are polite and decently worded,” Swift told the sold-out crowd, adding that the request came from special guest Phoebe Bridgers.

  • “Forever & Always”

    Performed at Lincoln Financial Field in Philadelphia, Pennsylvania (May 13, 2023)

    “I have a request that I’m gonna do,” Swift teased the crowd before playing the first of two surprise songs on May 13.

    “My friend Lena, it’s her birthday today,” she said, explaining that “she wanted to hear ‘Forever & Always.’”

  • “This Love”

    Performed at Lincoln Financial Field in Philadelphia, Pennsylvania (May 13, 2023)

    Heading over to her piano, Swift said she loved this night and didn’t want it to end, and then — without an introduction — played the emotional 1989 song “This Love.”

  • “Hey Stephen”

    Performed at Lincoln Financial Field in Philadelphia, Pennsylvania (May 14, 2023)

    “I had a few really nice, fun people ask me to do this one,” Swift said, and then took the crowd back almost 15 years to a Fearless classic, “Hey Stephen.”

  • “The Best Day”

    Performed at Lincoln Financial Field in Philadelphia, Pennsylvania (May 14, 2023)

    Tears had to have been aplenty throughout the stadium on Mother’s Day as Swift told the story of “The Best Day” and performed it on piano.

    “I secretly recorded a song on Fearless,” she told the crowd, recalling being 16 or 17 at the time and explaining that it was very tricky to get this project done without her mother knowing. “It was very sneaky and fun,” she said.

    “I wrote this song just compiling these sort of core childhood memories I had of not just her as a mother but her as a friend,” Swift said. After playing the sweet song for her mom for the first time, while showing her the video of personal family footage set to the track that she edited together herself, she asked her mom, “Did you like the song?” “It’s such a beautiful song. Where did you find it? It sounds exactly like the things we went through” Mom replied, not even comprehending that her own daughter would write a song about the two of them. “I wrote it and recorded it secretly,” Taylor told her. “It is our memories. That’s about us.” Needless to say, there were plenty of tears that day, too.

  • “Should’ve Said No”

    Performed at Gillette Stadium in Foxborough, Mass. (May 19, 2023)

  • “Better Man”

    Performed at Gillette Stadium in Foxborough, Mass. (May 19, 2023)

  • “Question…?”

    Performed at Gillette Stadium in Foxborough, Mass. (May 20, 2023)

    Before giving this Midnights track its live debut, Swift got candid with fans about how her life’s going behind the scenes.

    “I kind of just feel like telling you … I’ve just never been this happy in my life, in all aspects of my life, ever,” she gushed. “And I just want to thank you for being a part of that. It’s not just the tour, I just sort of feel like my life finally feels like it makes sense. I thought I’d play this song which brings me a lot of happy memories.” 

  • “Invisible”

    Performed at Gillette Stadium in Foxborough, Mass. (May 20, 2023)

  • “I Think He Knows”

    Performed at Gillette Stadium in Foxborough, Mass. (May 21, 2023)

  • “Red”

    Performed at Gillette Stadium in Foxborough, Mass. (May 21, 2023)

    For the first time in Eras Tour history, Swift performed both surprise songs on guitar. That’s because her piano took on a life of its own after getting damaged by rain during the show the night prior, causing Swift to last-minute switch over to guitar for “Red.”

    “Literally, it was like a water park under the stage,” she recalled to fans at the May 21 show. “This has clearly broken my keyboard. It was literally underwater — I don’t know how any of the instruments were working last night.”

  • “Getaway Car”

    Performed at MetLife Stadium in East Rutherford, N.J. (May 26, 2023)

    “I know you’ve wanted to hear this song,” Swift teased before her first surprise acoustic offering. And she wasn’t exaggerating. The pick was “Getaway Car,” a beloved fan fave, and for the song, frequent collaborator Jack Antonoff joined her on stage. “He’s been one of my best friends — he feels like a family member,” Swift said while welcoming “Jersey’s own” Antonoff. In addition to singing lead on a few lines, Antonoff aided Swift with some forceful acoustic strumming on the Reputation highlight.

  • “Maroon”

    Performed at MetLife Stadium in East Rutherford, N.J. (May 26, 2023)

    Midnights is the most recent album to drop before Taylor’s Eras Tour, so it’s no surprise that it takes up a good portion of the setlist. Even so, the standard Eras Tour setlist doesn’t include one of the album’s absolute best songs — but the evening’s night’s crowd was in for a treat. “This is one of my favorites off Midnights, but I haven’t played it yet,” Swift said, before performing a gorgeous rendition of “Maroon” while seated at an upright piano festooned with a floral design.

  • “Holy Ground”

    Performed at MetLife Stadium in East Rutherford, N.J. (May 27, 2023)

    “I’m gonna do one that’s one of my favorites, and hopefully you like it too,” Swift told the MetLife crowd of Red track “Holy Ground” Saturday night (May 27). “I feel like this is a pretty good choice for tonight. I’m pretty confident about it.”

  • “False God”

    Performed at MetLife Stadium in East Rutherford, N.J. (May 27, 2023)

    Without any introduction at all, Swift launched into Lover‘s “False God” on the piano.

Get weekly rundowns straight to your inbox

Subscribe

ad

{{ result.published_at | date: “%h %d, %Y” }}

0) { __qc.qpixelsent.length = 0; } // First Quantcast Tag _qoptions={ qacct:”” }; quantserve(); } catch(err) {} // Track Comscore unless it’s a gallery and has been tracked if ( window.pmc.comscoreTracked && -1 === window.pmc.comscoreTracked.indexOf( document.location.href ) ) { try { setTimeout(function(){var url = “http” + (/^https:/.test(document.location.href) ? “s” : “”) + “://beacon.scorecardresearch.com/scripts/beacon.dll” + “?c1=2&c2=6035310&c3=&c4=&c5=&c6=&c7=” + escape(document.location.href) + “&c8=” + escape(document.title) + “&c9=” + escape(document.referrer) + “&c10=” + escape(screen.width + ‘x’ + screen.height) + “&rn=” + (new Date()).getTime();var i = new Image();i.src = url;}, 1); COMSCORE.beacon({c1:2,c2:”6035310″,c3:”6035310″,c4:””,c5:””,c6:””,c15:””}); } catch(err) {} } /** * Track pageview end */ } ]]> Quantcast {“use strict”;var e,t,n,i,r,a=function(){return window.performance&&performance.getEntriesByType&&performance.getEntriesByType(“navigation”)[0]},o=function(e){if(“loading”===document.readyState)return”loading”;var t=a();if(t){if(e“+n:r,i.id)break;e=i.parentNode}}catch(e){}return n},s=-1,f=function(){return s},d=function(e){addEventListener(“pageshow”,(function(t){t.persisted&&(s=t.timeStamp,e(t))}),!0)},l=function(){var e=a();return e&&e.activationStart||0},m=function(e,t){var n=a(),i=”navigate”;return f()>=0?i=”back-forward-cache”:n&&(i=document.prerendering||l()>0?”prerender”:document.wasDiscarded?”restore”:n.type.replace(/_/g,”-“)),{name:e,value:void 0===t?-1:t,rating:”good”,delta:0,entries:[],id:”v3-“.concat(Date.now(),”-“).concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:i}},v=function(e,t,n){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var i=new PerformanceObserver((function(e){Promise.resolve().then((function(){t(e.getEntries())}))}));return i.observe(Object.assign({type:e,buffered:!0},n||{})),i}}catch(e){}},g=function(e,t,n,i){var r,a;return function(o){t.value>=0&&(o||i)&&((a=t.value-(r||0))||void 0===r)&&(r=t.value,t.delta=a,t.rating=function(e,t){return e>t[1]?”poor”:e>t[0]?”needs-improvement”:”good”}(t.value,n),e(t))}},p=function(e){requestAnimationFrame((function(){return requestAnimationFrame((function(){return e()}))}))},h=function(e){var t=function(t){“pagehide”!==t.type&&”hidden”!==document.visibilityState||e(t)};addEventListener(“visibilitychange”,t,!0),addEventListener(“pagehide”,t,!0)},T=function(e){var t=!1;return function(n){t||(e(n),t=!0)}},y=-1,b=function(){return”hidden”!==document.visibilityState||document.prerendering?1/0:0},w=function(e){“hidden”===document.visibilityState&&y>-1&&(y=”visibilitychange”===e.type?e.timeStamp:0,E())},S=function(){addEventListener(“visibilitychange”,w,!0),addEventListener(“prerenderingchange”,w,!0)},E=function(){removeEventListener(“visibilitychange”,w,!0),removeEventListener(“prerenderingchange”,w,!0)},L=function(){return y<0&&(y=b(),S(),d((function(){setTimeout((function(){y=b(),S()}),0)}))),{get firstHiddenTime(){return y}}},C=function(e){document.prerendering?addEventListener("prerenderingchange",(function(){return e()}),!0):e()},A=[1800,3e3],M=function(e,t){t=t||{},C((function(){var n,i=L(),r=m("FCP"),a=v("paint",(function(e){e.forEach((function(e){"first-contentful-paint"===e.name&&(a.disconnect(),e.startTime=0&&t1e12?new Date:performance.now())-e.timeStamp;”pointerdown”==e.type?function(e,t){var n=function(){P(e,t),r()},i=function(){r()},r=function(){removeEventListener(“pointerup”,n,I),removeEventListener(“pointercancel”,i,I)};addEventListener(“pointerup”,n,I),addEventListener(“pointercancel”,i,I)}(t,e):P(t,e)}},D=function(e){[“mousedown”,”keydown”,”touchstart”,”pointerdown”].forEach((function(t){return e(t,B,I)}))},V=[100,300],N=function(n,r){r=r||{},C((function(){var a,o=L(),c=m(“FID”),u=function(e){e.startTimet.latency){if(n)n.entries.push(e),n.latency=Math.max(n.latency,e.duration);else{var i={id:e.interactionId,latency:e.duration,entries:[e]};K[i.id]=i,J.push(i)}J.sort((function(e,t){return t.latency-e.latency})),J.splice(10).forEach((function(e){delete K[e.id]}))}},W=[2500,4e3],X={},Y=[800,1800],Z=function e(t){document.prerendering?C((function(){return e(t)})):”complete”!==document.readyState?addEventListener(“load”,(function(){return e(t)}),!0):setTimeout(t,0)},$=function(e,t){t=t||{};var n=m(“TTFB”),i=g(e,n,Y,t.reportAllChanges);Z((function(){var r=a();if(r){var o=r.responseStart;if(operformance.now())return;n.value=Math.max(o-l(),0),n.entries=[r],i(!0),d((function(){n=m(“TTFB”,0),(i=g(e,n,Y,t.reportAllChanges))(!0)}))}}))},ee=function(){return window.pmc.webVitals.config.sendToGA&&”function”==typeof ga},te=function(){var e=window.pmc.webVitals.config,t=e.sendToGA4,n=e.ga4Id;return t&&”function”==typeof gtag&&””!==n},ne=function(e,t){return Math.round(“CLS”===e?1e4*t:t)},ie=function(e){var t=e.name;window.pmc.webVitals.queue[t]=e},re=function(e){var t=e.id,n=e.name,i=e.delta,r=e.attribution,a=window.pmc.webVitals.config,o=a.eventCategory,c=a.tracker,u={eventCategory:o,eventAction:n,eventValue:ne(n,i),eventLabel:t,nonInteraction:!0};ee()?ga(“”.concat(c,”.send”),”event”,u):console.info(u);var s={send_to:c,eventCategory:String(o).substring(0,99),eventAction:String(n).substring(0,99),eventValue:ne(n,i),eventLabel:String(t).substring(0,99)},f=String(o+”-“+n).substring(0,39);switch(n){case”CLS”:s.debug_target=r.largestShiftTarget;break;case”FCP”:s.debug_target=r.timeToFirstByte;break;case”FID”:case”INP”:s.debug_target=r.eventTarget;break;case”LCP”:s.debug_target=r.element;break;case”TTFB”:s.debug_target=r.waitingTime}te()?gtag(“event”,f,s):console.info(f,s)},ae=function(){var e=window.pmc.webVitals,t=e.config,n=t.gaId,i=t.ga4Id,r=t.tracker,a=e.queue;ee()&&(ga(“create”,n,”auto”,r),ga(“”.concat(r,”.set”),”transport”,”beacon”)),te()&&gtag(“config”,i,{groups:r}),Object.values(a).map(re),window.pmc.webVitals.queue={}};window.addEventListener(“DOMContentLoaded”,(function(){if(!window.pmc.webVitals.config.blockGA){var e=window.pmc.webVitals.config.sampleThreshold,t=function(){for(var t=0,n=0;t<3;)n+=Math.random(),t++;return(n/=3)i.value&&(i.value=r,i.entries=a,n())},c=v("layout-shift",o);c&&(n=g(e,i,F,t.reportAllChanges),h((function(){o(c.takeRecords()),n(!0)})),d((function(){r=0,i=m("CLS",0),n=g(e,i,F,t.reportAllChanges),p((function(){return n()}))})),setTimeout(n,0))})))}((function(t){!function(e){if(e.entries.length){var t=e.entries.reduce((function(e,t){return e&&e.value>t.value?e:t}));if(t&&t.sources&&t.sources.length){var n=(i=t.sources).find((function(e){return e.node&&1===e.node.nodeType}))||i[0];if(n)return void(e.attribution={largestShiftTarget:u(n.node),largestShiftTime:t.startTime,largestShiftValue:t.value,largestShiftSource:n,largestShiftEntry:t,loadState:o(t.startTime)})}}var i;e.attribution={}}(t),e(t)}),void 0)}(ie),function(e,t){M((function(t){!function(e){if(e.entries.length){var t=a(),n=e.entries[e.entries.length-1];if(t){var i=t.activationStart||0,r=Math.max(0,t.responseStart-i);return void(e.attribution={timeToFirstByte:r,firstByteToFCP:e.value-r,loadState:o(e.entries[0].startTime),navigationEntry:t,fcpEntry:n})}}e.attribution={timeToFirstByte:0,firstByteToFCP:e.value,loadState:o(f())}}(t),e(t)}),void 0)}(ie),function(e,t){N((function(t){!function(e){var t=e.entries[0];e.attribution={eventTarget:u(t.target),eventType:t.name,eventTime:t.startTime,eventEntry:t,loadState:o(t.startTime)}}(t),e(t)}),void 0)}(ie),function(e,t){!function(e,t){t=t||{},C((function(){H();var n,i=m(“INP”),r=function(e){e.forEach((function(e){e.interactionId&&Q(e),”first-input”===e.entryType&&!J.some((function(t){return t.entries.some((function(t){return e.duration===t.duration&&e.startTime===t.startTime}))}))&&Q(e)}));var t,r=(t=Math.min(J.length-1,Math.floor(z()/50)),J[t]);r&&r.latency!==i.value&&(i.value=r.latency,i.entries=r.entries,n())},a=v(“event”,r,{durationThreshold:t.durationThreshold||40});n=g(e,i,j,t.reportAllChanges),a&&(a.observe({type:”first-input”,buffered:!0}),h((function(){r(a.takeRecords()),i.value<0&&z()>0&&(i.value=0,i.entries=[]),n(!0)})),d((function(){J=[],U=O(),i=m(“INP”),n=g(e,i,j,t.reportAllChanges)})))}))}((function(t){!function(e){if(e.entries.length){var t=e.entries.sort((function(e,t){return t.duration-e.duration||t.processingEnd-t.processingStart-(e.processingEnd-e.processingStart)}))[0];e.attribution={eventTarget:u(t.target),eventType:t.name,eventTime:t.startTime,eventEntry:t,loadState:o(t.startTime)}}else e.attribution={}}(t),e(t)}),t)}(ie),function(e,t){!function(e,t){t=t||{},C((function(){var n,i=L(),r=m(“LCP”),a=function(e){var t=e[e.length-1];t&&t.startTime

Read The Full Article Here