1 2 3var ClientId = "undefined"; 4var pageUrl = "undefined"; 5var pgtype = ""; 6 7function logoMainclk() { pgtype = document.getElementById("txtcom").value; dataLayer.push({ 'event': 'header', 'eventCategory': 'Top Header', 'eventAction': 'logo', 'Page Type': '' + pgtype + '', 'Canonical URL': '' + window.location + '' }); } 8 9function KesarilogoMainclk() { pgtype = document.getElementById("txtcom").value; dataLayer.push({ 'event': 'header', 'eventCategory': 'Top Header', 'eventAction': 'Kesari TV', 'Page Type': '' + pgtype + '', 'Canonical URL': '' + window.location + '' }); } 10 11function EpaperlogoMainclk() { pgtype = document.getElementById("txtcom").value; dataLayer.push({ 'event': 'header', 'eventCategory': 'Top Header', 'eventAction': 'E-paper', 'Page Type': '' + pgtype + '', 'Canonical URL': '' + window.location + '' }); } 12 13function PremiumMainclk() { pgtype = document.getElementById("txtcom").value; dataLayer.push({ 'event': 'header', 'eventCategory': 'Top Header', 'eventAction': 'Premium Click', 'Page Type': '' + pgtype + '', 'Canonical URL': '' + window.location + '' }); } 14 15function Weatherclk() { pgtype = document.getElementById("txtcom").value; dataLayer.push({ 'event': 'header', 'eventCategory': 'Top Header', 'eventAction': 'Weather Click', 'Page Type': '' + pgtype + '', 'Canonical URL': '' + window.location + '' }); } 16 17function notiIconclk() { console.log('icon click'); pgtype = document.getElementById("txtcom").value; dataLayer.push({ 'event': 'header', 'eventCategory': 'Top Header', 'eventAction': 'Notification Icon Click', 'Page Type': '' + pgtype + '', 'Canonical URL': '' + window.location + '' }); } 18 19function notiArticleclick(authorName, catname, date, day, hour, newsId, tags, authorId, source, engHeadline, wordCount, type) { 20 console.log('article click'); 21 pgtype = document.getElementById("txtcom").value; 22 dataLayer.push({ 23 'event': 'header', 24 'eventCategory': 'Top Header', 25 'eventAction': 'Notification Article Click', 26 'eventLabel': '' + engHeadline + '', 27 'Page Type': '' + pgtype + '', 28 'Article Author': '' + authorName.toLowerCase() + '', 29 'Article Category': '' + catname + '', 30 'Date of Article': '' + date + '', 31 'Day of Article': '' + day + '', 32 'Hour of Article': '' + hour + '', 33 'Story ID': '' + newsId + '', 34 'Tags': '' + tags + '', 35 'Canonical URL': '' + window.location + '', 36 'Content Type': '' + type + '', 37 'Author ID': '' + authorId + '', 38 'Article subcategory': '' + catname + '', 39 'Article Name': '' + engHeadline + '', 40 }); 41} 42 43 44function locationclk() { pgtype = document.getElementById("txtcom").value; dataLayer.push({ 'event': 'header', 'eventCategory': 'Top Header', 'eventAction': 'Location Icon Click', 'Page Type': '' + pgtype + '', 'Canonical URL': '' + window.location + '' }); } 45 46function locSelected(state, city) { 47 pgtype = document.getElementById("txtcom").value; 48 dataLayer.push({ 49 'event': 'header', 50 'eventCategory': 'Top Header', 51 'eventAction': 'Location Changed', 52 'eventLabel': '' + state + ' | ' + city + '', 53 'Page Type': '' + pgtype + '', 54 'Canonical URL': '' + window.location + '' 55 }); 56} 57 58function brwsMenuclk() { pgtype = document.getElementById("txtcom").value; dataLayer.push({ 'event': 'header', 'eventCategory': 'Top Hamburger Menu', 'eventAction': 'Hamburger Menu icon click', 'Page Type': '' + pgtype + '', 'Canonical URL': '' + window.location + '' }); } 59 60 61function brwsCatclick(sectionName, subCatname) { 62 pgtype = document.getElementById("txtcom").value; 63 dataLayer.push({ 64 'event': 'header', 65 'eventCategory': 'Top Hamburger Menu', 66 'eventAction': '' + sectionName + '', 67 'eventLabel': '' + subCatname + '', 68 'Page Type': '' + pgtype + '', 69 'Canonical URL': '' + window.location + '' 70 }); 71} 72 73function appsIcon(pos, type) { 74 pgtype = document.getElementById("txtcom").value; 75 if (pos.toLowerCase() == "header") { 76 dataLayer.push({ 77 'event': 'header', 78 'eventCategory': 'Top Hamburger Menu', 79 'eventAction': 'App Download', 80 'eventLabel': '' + type + '', 81 'Page Type': '' + pgtype + '', 82 'Canonical URL': '' + window.location + '' 83 }); 84 } 85 else if (pos.toLowerCase() == "footer") { 86 dataLayer.push({ 87 'event': 'header', 88 'eventCategory': 'Footer', 89 'eventAction': 'App Download', 90 'eventLabel': '' + type + '', 91 'Page Type': '' + pgtype + '', 92 'Canonical URL': '' + window.location + '' 93 }); 94 } 95 96} 97 98function navMenutop(catname) { 99 pgtype = document.getElementById("txtcom").value; 100 dataLayer.push({ 101 'event': 'header', 102 'eventCategory': 'Top Navigation Menu', 103 'eventAction': '' + catname + '', 104 'Page Type': '' + pgtype + '', 105 'Canonical URL': '' + window.location + '' 106 });
107} 108 109 110 111function navMenusub(catname, subcatname) { 112 pgtype = document.getElementById("txtcom").value; 113 dataLayer.push({ 114 'event': 'header', 115 'eventCategory': 'Top Navigation Menu', 116 'eventAction': '' + catname + '', 117 'eventLabel': '' + subcatname + '', 118 'Page Type': '' + pgtype + '', 119 'Canonical URL': '' + window.location + '' 120 }); 121} 122 123function searchclk(searchtxt) { 124 pgtype = document.getElementById("txtcom").value; 125 dataLayer.push({ 126 'event': 'header', 127 'eventCategory': 'Top Navigation Menu', 128 'eventAction': 'Search', 129 'eventLabel': '' + searchtxt + '', 130 'Page Type': '' + pgtype + '', 131 'Canonical URL': '' + window.location + '' 132 }); 133} 134 135 136 137function brkNwsclk(eng_headline, author_name, author_id, cat, news_id, tags, content_type, date, day, hour, word, source) { 138 pgtype = document.getElementById("txtcom").value; 139 dataLayer.push({ 140 'event': 'header', 141 'eventCategory': 'Breaking News', 142 'eventAction': 'Article Click', 143 'eventLabel': '' + eng_headline + '', 144 'Page Type': '' + pgtype + '', 145 'Canonical URL': '' + window.location + '', 146 'Content Type': '' + content_type + '', 147 'Article Name': '' + eng_headline + '', 148 }); 149} 150 151 152function rightPanelclk(type) { 153 pgtype = document.getElementById("txtcom").value; 154 dataLayer.push({ 155 'event': 'middle section', 156 'eventCategory': 'Right Pannel', 157 'eventAction': '' + type + '', 158 'Page Type': '' + pgtype + '', 159 'Canonical URL': '' + window.location + '' 160 }); 161} 162 163 164function latestArwclk(arwdirection) { 165 var currentIndex = $('div.active').index() + 1; 166 //console.log(currentIndex); 167 pgtype = document.getElementById("txtcom").value; 168 dataLayer.push({ 169 'event': 'middle section', 170 'eventCategory': 'Latest News', 171 'eventAction': 'Arrow Click', 172 'eventLabel': '' + arwdirection + ' | Article_' + currentIndex + '', 173 'Page Type': '' + pgtype + '', 174 'Canonical URL': '' + window.location + '' 175 }); 176} 177 178function latestArticleclk(clicktype, authorName, cat, date, day, hour, newsId, wordCount, tags, type, authorId, subCat, engHeadline, source) { 179 var currentIndex = $('div.active').index() + 1; 180 pgtype = document.getElementById("txtcom").value; 181 if (clicktype.toLowerCase() == "article") { 182 dataLayer.push({ 183 'event': 'middle section', 184 'eventCategory': 'Latest News', 185 'eventAction': 'Article Click', 186 'eventLabel': '' + currentIndex + '', 187 'Page Type': '' + pgtype + '', 188 'Article Author': '' + authorName.toLowerCase() + '', 189 'Article Category': '' + cat + '', 190 'Date of Article': '' + date + '', 191 'Day of Article': '' + day + '', 192 'Hour of Article': '' + hour + '', 193 'Story ID': '' + newsId + '', 194 'Word Bucket': '' + wordCount + '', 195 'Tags': '' + tags + '', 196 'Canonical URL': '' + window.location + '', 197 'Content Type': '' + type + '', 198 'Author ID': '' + authorId + '', 199 'Article subcategory': '' + cat + '', 200 'Article Name': '' + engHeadline + '', 201 'Source of the story': '' + source + '' 202 }); 203 } 204 else if (clicktype.toLowerCase() == "continue") { 205 dataLayer.push({ 206 'event': 'middle section', 207 'eventCategory': 'Latest News', 208 'eventAction': 'Continue Reading Click', 209 'eventLabel': '' + currentIndex + '', 210 'Page Type': '' + pgtype + '', 211 'Article Author': '' + authorName.toLowerCase() + '', 212 'Article Category': '' + cat + '', 213 'Date of Article': '' + date + '', 214 'Day of Article': '' + day + '', 215 'Hour of Article': '' + hour + '', 216 'Story ID': '' + newsId + '', 217 'Word Bucket': '' + wordCount + '', 218 'Tags': '' + tags + '', 219 'Canonical URL': '' + window.location + '', 220 'Content Type': '' + type + '', 221 'Author ID': '' + authorId + '', 222 'Article subcategory': '' + cat + '', 223 'Article Name': '' + engHeadline + '', 224 'Source of the story': '' + source + '' 225 }); 226 } 227 228} 229 230function articleOthersec(sectionName, articlPos, authorName, cat, date, day, hour, newsId, wordCount, tags, type, authorId, subCat, engHeadline, source) { 231 pgtype = document.getElementById("txtcom").value; 232 dataLayer.push({ 233 'event': 'middle section', 234 'eventCategory': 'Article Click', 235 'eventAction': '' + sectionName + '', 236 'eventLabel': '' + articlPos + '', 237 'Page Type': '' + pgtype + '', 238 'Article Author': '' + authorName.toLowerCase() + '', 239 'Article Category': '' + cat + '', 240 'Date of Article': '' + date + '', 241 'Day of Article': '' + day + '', 242 'Hour of Article': '' + hour + '', 243 'Story ID': '' + newsId + '', 244 'Word Bucket': '' + wordCount + '', 245 'Tags': '' + tags + '', 246 'Canonical URL': '' + window.location + '', 247 'Content Type': '' + type + '', 248 'Author ID': '' + authorId + '', 249 'Article subcategory': '' + cat + '', 250 'Article Name': '' + engHeadline + '', 251 'Source of the story': '' + source + '' 252 });
253 254} 255 256 257 258function showAllhome(sectionName) { 259 pgtype = document.getElementById("txtcom").value; 260 dataLayer.push({ 261 'event': 'middle section', 262 'eventCategory': 'Home Page Article Click', 263 'eventAction': 'Show All Click', 264 'eventLabel': '' + sectionName + '', 265 'Page Type': '' + pgtype + '', 266 'Canonical URL': '' + window.location + '' 267 }); 268 269} 270 271 272 273function eknazarclk(position, engHeadline, authorName, cat, date, day, hour, newsId, wordCount, tags, type, authorId, subCat, source) { 274 pgtype = document.getElementById("txtcom").value; 275 dataLayer.push({ 276 'event': 'middle section', 277 'eventCategory': 'Ek Nazar', 278 'eventAction': '' + position + '', 279 'eventLabel': '' + engHeadline + '', 280 'Page Type': '' + pgtype + '', 281 'Article Author': '' + authorName.toLowerCase() + '', 282 'Article Category': '' + cat + '', 283 'Date of Article': '' + date + '', 284 'Day of Article': '' + day + '', 285 'Hour of Article': '' + hour + '', 286 'Story ID': '' + newsId + '', 287 'Word Bucket': '' + wordCount + '', 288 'Tags': '' + tags + '', 289 'Canonical URL': '' + window.location + '', 290 'Content Type': '' + type + '', 291 'Author ID': '' + authorId + '', 292 'Article subcategory': '' + cat + '', 293 'Article Name': '' + engHeadline + '', 294 'Source of the story': '' + source + '' 295 }); 296} 297 298 299 300function kesariMenuclk(cat) { 301 pgtype = document.getElementById("txtcom").value; 302 dataLayer.push({ 303 'event': 'Kesari TV', 304 'eventCategory': 'Kesari TV', 305 'eventAction': 'Top Navigation Menu', 306 'eventLabel': '' + cat + '', 307 'Page Type': '' + pgtype + '', 308 'Canonical URL': '' + window.location + '' 309 }); 310} 311 312 313function kesariVideoclk(videoTitle) { 314 pgtype = document.getElementById("txtcom").value; 315 dataLayer.push({ 316 'event': 'Kesari TV', 317 'eventCategory': 'Kesari TV', 318 'eventAction': 'Video Click', 319 'eventLabel': '' + videoTitle + '', 320 'Page Type': '' + pgtype + '', 321 'Canonical URL': '' + window.location + '', 322 'Video title': '' + videoTitle + '' 323 }); 324} 325 326 327function horoscopeConRead(zodiacName) { 328 pgtype = document.getElementById("txtcom").value; 329 dataLayer.push({ 330 'event': 'middle section', 331 'eventCategory': 'Daily Horoscope', 332 'eventAction': 'Continue Reading Click', 333 'eventLabel': '' + zodiacName + '', 334 'Page Type': '' + pgtype + '', 335 'Canonical URL': '' + window.location + '' 336 }); 337} 338 339function CTAclick(position) { 340 var pgtype = document.getElementById("txtcom").value; 341 var currency = document.getElementById("currencylist").value; 342 var list = []; 343 list = currency.split(","); 344 //var aa = list[position]; 345 //console.log(aa); 346 dataLayer.push({ 347 'event': 'middle section', 348 'eventCategory': 'Currency Rate', 349 'eventAction': 'Next Currency', 350 'eventLabel': '' + list[position] + '', 351 'Page Type': '' + pgtype + '', 352 'Canonical URL': '' + window.location + '' 353 }); 354} 355 356 357function trendingTopic(topicName) { 358 pgtype = document.getElementById("txtcom").value; 359 dataLayer.push({ 360 'event': 'middle section', 361 'eventCategory': 'Trending Topics', 362 'eventAction': '' + pgtype + '', 363 'eventLabel': '' + topicName + '', 364 'Page Type': '' + pgtype + '', 365 'Canonical URL': '' + window.location + '' 366 }); 367} 368 369 370function photoSectionarticl(engHeadline, pos) { 371 pgtype = document.getElementById("txtcom").value; 372 dataLayer.push({ 373 'event': 'middle section', 374 'eventCategory': 'Photos(Carousel)', 375 'eventAction': '' + pos + '', 376 'eventLabel': '' + engHeadline + '', 377 'Page Type': '' + pgtype + '', 378 'Canonical URL': '' + window.location + '', 379 'Article Name': '' + engHeadline + '' 380 }); 381} 382 383 384function photoGallerynav(cat) { 385 pgtype = document.getElementById("txtcom").value; 386 dataLayer.push({ 387 'event': 'Photo Gallery', 388 'eventCategory': 'Photo Gallery', 389 'eventAction': 'Top Navigation Menu', 390 'eventLabel': '' + cat + '', 391 'Page Type': '' + pgtype + '', 392 'Canonical URL': '' + window.location + '' 393 });
394} 395 396 397function photoGallerypicClk(title) { 398 pgtype = document.getElementById("txtcom").value; 399 dataLayer.push({ 400 'event': 'Photo Gallery', 401 'eventCategory': 'Photo Gallery', 402 'eventAction': 'Photo Click', 403 'eventLabel': '' + title + '', 404 'Page Type': '' + pgtype + '', 405 'Canonical URL': '' + window.location + '', 406 'Article Name': '' + title + '' 407 }); 408} 409 410function subscribeBtn(type) { 411 412 pgtype = document.getElementById("txtcom").value; 413 if (type.toLowerCase() == "bottom") { 414 dataLayer.push({ 415 'event': 'Newsletter Subscribe', 416 'eventCategory': 'Newsletter Subscribe', 417 'eventAction': 'Subscribe Icon Click', 418 'Page Type': '' + pgtype + '', 419 'Canonical URL': '' + window.location + '' 420 }); 421 } 422 else if (type.toLowerCase() == "popup") { 423 dataLayer.push({ 424 'event': 'Newsletter Subscribe', 425 'eventCategory': 'Newsletter Subscribe', 426 'eventAction': 'Subscribe Now', 427 'Page Type': '' + pgtype + '', 428 'Canonical URL': '' + window.location + '' 429 }); 430 } 431 else if (type.toLowerCase() == "epapersubsc") { 432 dataLayer.push({ 433 'event': 'E-Paper Subscription', 434 'eventCategory': 'E-Paper Subscription', 435 'eventAction': 'Subscribe Icon Click', 436 'Page Type': '' + pgtype + '', 437 'Canonical URL': '' + window.location + '' 438 }); 439 } 440 441} 442 443 444function nwsltrGrpclk(grpName) { 445 pgtype = document.getElementById("txtcom").value; 446 dataLayer.push({ 447 'event': 'Newsletter Subscribe', 448 'eventCategory': 'Newsletter Subscribe', 449 'eventAction': 'Punjab Kesari Group', 450 'eventLabel': '' + grpName + '', 451 'Page Type': '' + pgtype + '', 452 'Canonical URL': '' + window.location + '' 453 }); 454} 455 456function nwsltrAppicon(type) { 457 pgtype = document.getElementById("txtcom").value; 458 dataLayer.push({ 459 'event': 'Newsletter Subscribe', 460 'eventCategory': 'Newsletter Subscribe', 461 'eventAction': 'App Download', 462 'eventLabel': '' + type + '', 463 'Page Type': '' + pgtype + '', 464 'Canonical URL': '' + window.location + '' 465 }); 466} 467 468function socialIcon(pos, socialName) { 469 pgtype = document.getElementById("txtcom").value; 470 if (pos.toLowerCase() == "footer") { 471 dataLayer.push({ 472 'event': 'social_subscribe', 473 'eventCategory': 'Footer', 474 'eventAction': 'Social Subscribe', 475 'eventLabel': '' + socialName + '', 476 'Page Type': '' + pgtype + '', 477 'Canonical URL': '' + window.location + '' 478 }); 479 } 480 else if (pos.toLowerCase() == "newsletter") { 481 dataLayer.push({ 482 'event': 'Newsletter Subscribe', 483 'eventCategory': 'Newsletter Subscribe', 484 'eventAction': 'Social Share', 485 'eventLabel': '' + socialName + '', 486 'Page Type': '' + pgtype + '', 487 'Canonical URL': '' + window.location + '' 488 }); 489 } 490 491} 492 493function footerAnytxtClk(sectionName, selectedTerm) { 494 pgtype = document.getElementById("txtcom").value; 495 dataLayer.push({ 496 'event': 'footer', 497 'eventCategory': 'Footer', 498 'eventAction': '' + sectionName + '', 499 'eventLabel': '' + selectedTerm + '', 500 'Page Type': '' + pgtype + '', 501 'Canonical URL': '' + window.location + '' 502 }); 503} 504 505 506function footerOfcsclk(cityName) { 507 pgtype = document.getElementById("txtcom").value; 508 dataLayer.push({ 509 'event': 'footer', 510 'eventCategory': 'Footer', 511 'eventAction': 'Offices', 512 'eventLabel': '' + cityName + '', 513 'Page Type': '' + pgtype + '', 514 'Canonical URL': '' + window.location + '' 515 }); 516} 517 518 519function footerBotmlinks(title) { 520 pgtype = document.getElementById("txtcom").value; 521 dataLayer.push({ 522 'event': 'footer', 523 'eventCategory': 'Footer', 524 'eventAction': 'Bottom most page listing', 525 'eventLabel': '' + title + '', 526 'Page Type': '' + pgtype + '', 527 'Canonical URL': '' + window.location + '' 528 });
529} 530 531 532function contactFeed() { 533 pgtype = document.getElementById("txtcom").value; 534 dataLayer.push({ 535 'event': 'contact_us_page', 536 'eventCategory': 'Contact us form submit', 537 'eventAction': 'Submit Form', 538 'Page Type': '' + pgtype + '', 539 'Canonical URL': '' + window.location + '' 540 }); 541} 542 543 544function dharmSec(cat) { 545 pgtype = document.getElementById("txtcom").value; 546 dataLayer.push({ 547 'event': 'dharm', 548 'eventCategory': 'Dharm Subcategory Click', 549 'eventAction': '' + cat + '', 550 'Page Type': '' + pgtype + '', 551 'Canonical URL': '' + window.location + '' 552 }); 553 554} 555 556function rashiPagezodiacs(zodiacName) { 557 pgtype = document.getElementById("txtcom").value; 558 dataLayer.push({ 559 'event': 'dharm_horoscope', 560 'eventCategory': 'Horoscope', 561 'eventAction': '' + zodiacName + '', 562 'Page Type': '' + pgtype + '', 563 'Canonical URL': '' + window.location + '' 564 }); 565} 566 567function rashiPagedurations(zodiacName, duration) { 568 pgtype = document.getElementById("txtcom").value; 569 dataLayer.push({ 570 'event': 'dharm_horoscope', 571 'eventCategory': 'Horoscope', 572 'eventAction': '' + zodiacName + '', 573 'eventLabel': '' + duration + '', 574 'Page Type': '' + pgtype + '', 575 'Canonical URL': '' + window.location + '' 576 }); 577} 578 579function dharmSecarticle(cat, rowcol, engHeadline) { 580 pgtype = document.getElementById("txtcom").value; 581 dataLayer.push({ 582 'event': 'dharm', 583 'eventCategory': '' + cat + '', 584 'eventLabel': '' + engHeadline + '', 585 'Page Type': '' + pgtype + '', 586 'Canonical URL': '' + window.location + '' 587 }); 588} 589 590//sub menu on section page 591function submenu(cat, subCat) { 592 pgtype = document.getElementById("txtcom").value; 593 dataLayer.push({ 594 'event': 'subdomain_home', 595 'eventCategory': 'Subdomain Based Location Listing', 596 'eventAction': '' + cat + '', 597 'eventLabel': '' + subCat + '', 598 'Page Type': '' + pgtype + '', 599 'Canonical URL': '' + window.location + '' 600 }); 601} 602 603//section page newslist for subdomain 604function submenuSec(position, engHeadline, cat) { 605 pgtype = document.getElementById("txtcom").value; 606 dataLayer.push({ 607 'event': 'subdomain_home', 608 'eventCategory': 'Subdomain page story click', 609 'eventAction': '' + cat + '', 610 'eventLabel': '' + position + '', 611 'Page Type': '' + pgtype + '', 612 'Canonical URL': '' + window.location + '', 613 'Article Name': '' + engHeadline + '' 614 }); 615} 616 617//for section page of joke and thought 618function jokeThoughtsec(type, rowcol, text) { 619 pgtype = document.getElementById("txtcom").value; 620 if (type.toLowerCase() == "joke") { 621 dataLayer.push({ 622 'event': 'Joke', 623 'eventCategory': 'Joke', 624 'eventAction': '' + rowcol + '', 625 'eventLabel': '' + text + '', 626 'Page Type': '' + pgtype + '', 627 'Canonical URL': '' + window.location + '' 628 }); 629 } 630 else if (type.toLowerCase() == "thought") { 631 dataLayer.push({ 632 'event': 'Thought', 633 'eventCategory': 'Thought', 634 'eventAction': '' + rowcol + '', 635 'eventLabel': '' + text + '', 636 'Page Type': '' + pgtype + '', 637 'Canonical URL': '' + window.location + '' 638 }); 639 640 } 641} 642 643 644function internalCatmenu(cat, subCat) { 645 pgtype = document.getElementById("txtcom").value; 646 dataLayer.push({ 647 'event': 'Internal Category_home', 648 'eventCategory': 'Category Based Location Listing', 649 'eventAction': '' + cat + '', 650 'eventLabel': '' + subCat + '', 651 'Page Type': '' + pgtype + '', 652 'Canonical URL': '' + window.location + '' 653 }); 654} 655 656//section page newslist 657function internalCatarticle(position, engHeadline, cat) { 658 pgtype = document.getElementById("txtcom").value; 659 dataLayer.push({ 660 'event': 'Internal Category_home',
661 'eventCategory': 'Internal category page story click', 662 'eventAction': '' + cat + '', 663 'eventLabel': '' + position + '', 664 'Page Type': '' + pgtype + '', 665 'Canonical URL': '' + window.location + '', 666 'Article Name': '' + engHeadline + '' 667 }); 668} 669 670 671 672// Article Page functions// 673 674 675function scrollTrack(percentage, engHeadline, authorName, cat, date, day, hour, newsId, wordCount, tags, type, authorId, estimateRead, source, adBloker, gtmVersion) { 676 pgtype = document.getElementById("txtcom").value; 677 dataLayer.push({ 678 'event': 'article_page', 679 'eventCategory': 'scroll tracking', 680 'eventAction': '' + percentage + '', 681 'eventLabel': '' + engHeadline + '', 682 'Page Type': '' + pgtype + '', 683 'Article Author': '' + authorName.toLowerCase() + '', 684 'Article Category': '' + cat + '', 685 'Date of Article': '' + date + '', 686 'Day of Article': '' + day + '', 687 'Hour of Article': '' + hour + '', 688 'Story ID': '' + newsId + '', 689 'Word Bucket': '' + wordCount + '', 690 'Tags': '' + tags + '', 691 'Canonical URL': '' + window.location + '', 692 'Content Type': '' + type + '', 693 'Author ID': '' + authorId + '', 694 'Estimated reading time': '' + estimateRead + '', 695 'Article subcategory': '' + cat + '', 696 'Article Name': '' + engHeadline + '' 697 }); 698} 699 700 701function readerScanner(readertype, engHeadline, authorName, cat, date, day, hour, newsId, wordCount, tags, type, authorId, estimateRead, adBloker, gtmversion) { 702 pgtype = document.getElementById("txtcom").value; 703 dataLayer.push({ 704 'event': 'article_page', 705 'eventCategory': 'reader_scanner', 706 'eventAction': '' + readertype + '', 707 'eventLabel': '' + engHeadline + '', 708 'Page Type': '' + pgtype + '', 709 'Article Author': '' + authorName.toLowerCase() + '', 710 'Article Category': '' + cat + '', 711 'Date of Article': '' + date + '', 712 'Day of Article': '' + day + '', 713 'Hour of Article': '' + hour + '', 714 'Story ID': '' + newsId + '', 715 'Word Bucket': '' + wordCount + '', 716 'Tags': '' + tags + '', 717 'Canonical URL': '' + window.location + '', 718 'Content Type': '' + type + '', 719 'Author ID': '' + authorId + '', 720 'Estimated reading time': '' + estimateRead + '', 721 'Article subcategory': '' + cat + '', 722 'Article Name': '' + engHeadline + '' 723 }); 724} 725 726 727function articleTagsclk(tagName, authorName, cat, date, day, hour, newsId, wordCount, tags, type, authorId, estimateRead, adBloker, gtmversion) { 728 pgtype = document.getElementById("txtcom").value; 729 dataLayer.push({ 730 'event': 'article_page', 731 'eventCategory': 'article content tracking', 732 'eventAction': 'article tag click', 733 'eventLabel': '' + tagName + '', 734 'Page Type': '' + pgtype + '', 735 'Article Author': '' + authorName.toLowerCase() + '', 736 'Article Category': '' + cat + '', 737 'Date of Article': '' + date + '', 738 'Day of Article': '' + day + '', 739 'Hour of Article': '' + hour + '', 740 'Story ID': '' + newsId + '', 741 'Word Bucket': '' + wordCount + '', 742 'Tags': '' + tags + '', 743 'Canonical URL': '' + window.location + '', 744 'Content Type': '' + type + '', 745 'Author ID': '' + authorId + '', 746 'Estimated reading time': '' + estimateRead + '', 747 'Article subcategory': '' + cat + '', 748 'Article Name': '' + tagName + '' 749 }); 750} 751 752 753function relatedStory(position, engHeadline, authorName, cat, date, day, hour, newsId, wordCount, tags, type, authorId, estimateRead, adBloker, gtmversion) { 754 pgtype = document.getElementById("txtcom").value; 755 dataLayer.push({ 756 'event': 'article_page', 757 'eventCategory': 'Related News Click', 758 'eventAction': '' + position + '', 759 'eventLabel': '' + engHeadline + '', 760 'Page Type': '' + pgtype + '', 761 'Article Author': '' + authorName.toLowerCase() + '', 762 'Article Category': '' + cat + '', 763 'Date of Article': '' + date + '', 764 'Day of Article': '' + day + '', 765 'Hour of Article': '' + hour + '', 766 'Story ID': '' + newsId + '', 767 'Word Bucket': '' + wordCount + '', 768 'Tags': '' + tags + '', 769 'Canonical URL': '' + window.location + '', 770 'Content Type': '' + type + '', 771 'Author ID': '' + authorId + '', 772 'Estimated reading time': '' + estimateRead + '', 773 'Article subcategory': '' + cat + '', 774 'Article Name': '' + engHeadline + '' 775 });
776} 777 778function videoSec(position, title) { 779 pgtype = document.getElementById("txtcom").value; 780 dataLayer.push({ 781 'event': 'article_page', 782 'eventCategory': 'Latest Video', 783 'eventAction': '' + position + '', 784 'eventLabel': '' + title + '', 785 'Page Type': '' + pgtype + '', 786 'Canonical URL': '' + window.location + '', 787 'Video title': '' + title + '' 788 }); 789} 790 791 792 793function aurPdhesec(position, engHeadline, authorName, cat, date, day, hour, newsId, wordCount, tags, type, authorId, estimateRead, adBloker, gtmversion) { 794 pgtype = document.getElementById("txtcom").value; 795 dataLayer.push({ 796 'event': 'article_page', 797 'eventCategory': 'Read More', 798 'eventAction': '' + position + '', 799 'eventLabel': '' + engHeadline + '', 800 'Page Type': '' + pgtype + '', 801 'Article Author': '' + authorName.toLowerCase() + '', 802 'Article Category': '' + cat + '', 803 'Date of Article': '' + date + '', 804 'Day of Article': '' + day + '', 805 'Hour of Article': '' + hour + '', 806 'Story ID': '' + newsId + '', 807 'Word Bucket': '' + wordCount + '', 808 'Tags': '' + tags + '', 809 'Canonical URL': '' + window.location + '', 810 'Content Type': '' + type + '', 811 'Author ID': '' + authorId + '', 812 'Estimated reading time': '' + estimateRead + '', 813 'Article subcategory': '' + cat + '', 814 'Article Name': '' + engHeadline + '' 815 }); 816} 817 818 819function footerLogo() { 820 pgtype = document.getElementById("txtcom").value; 821 dataLayer.push({ 822 'event': 'footer', 823 'eventCategory': 'Footer', 824 'eventAction': 'footer logo_click', 825 'Page Type': '' + pgtype + '', 826 'Canonical URL': '' + window.location + '' 827 }); 828} 829 830 831//Page Load Events 832function otherPages() { 833 pgtype = document.getElementById("txtcom").value; 834 dataLayer.push({ 835 'Page Type': '' + pgtype + '', 836 'Canonical URL': '' + window.location + '', 837 'Ad Blocker': 'undefined' 838 }); 839} 840 841 842 843function storyPage(authorName, cat, date, day, hour, newsId, wordCount, tags, contentType, authorId, estimateRead, engHeadline) { 844 pgtype = document.getElementById("txtcom").value; 845 dataLayer.push({ 846 'Page Type': '' + pgtype + '', 847 'Article Author': '' + authorName.toLowerCase() + '', 848 'Article Category': '' + cat + '', 849 'Date of Article': '' + date + '', 850 'Day of Article': '' + day + '', 851 'Hour of Article': '' + hour + '', 852 'Story ID': '' + newsId + '', 853 'Word Bucket': '' + wordCount + '', 854 'Tags': '' + tags + '', 855 'Canonical URL': '' + window.location + '', 856 'Content Type': '' + contentType + '', 857 'Author ID': '' + authorId + '', 858 'Estimated reading time': '' + estimateRead + '', 859 'Article subcategory': '' + cat + '', 860 'Article Name': '' + engHeadline + '' 861 }); 862} 863 864function recmndSec(engHeadline,artPos,authorName,cat,date,newsId,tags) { 865 dataLayer.push({ 866 'event': 'middle section', 867 'eventCategory': 'Recommended Article Click', 868 'eventAction': ''+engHeadline+'', 869 'eventLabel': ''+artPos+'', 870 'Article Author': ''+authorName.toLowerCase()+'', 871 'Article Category': ''+cat+'', 872 'Date of Article': ''+date+'', 873 'Story ID': ''+newsId+'', 874 'Tags': ''+tags+'', 875 'Article Name': ''+engHeadline+'', 876 }); 877} 878 879 880function stickySection(engHeadline, artPos, authorName, cat, date, newsId, tags) { 881pgtype = document.getElementById("txtcom").value; 882 dataLayer.push({ 883 'event': 'article_page', 884 'eventCategory': 'Sticky Section', 885 'eventAction': '' + artPos+'', 886 'eventLabel': ''+engHeadline+'', 887 'Page Type': ''+pgtype+'', 888 'Article Author': ''+authorName.toLowerCase()+'', 889 'Article Category': ''+cat+'', 890 'Date of Article': ''+date+'', 891 'Story ID': ''+newsId+'', 892 'Tags': ''+tags+'', 893 'Article subcategory': ''+cat+'', 894 'Article Name': ''+engHeadline+'' 895 });
896} 897 898 899 900function articleOthersecmostread(sectionName, articlPos, authorName, cat, date, day, hour, newsId, wordCount, tags, type, authorId, subCat, engHeadline, source) { 901 pgtype = document.getElementById("txtcom").value; 902 dataLayer.push({ 903 'event': 'middle section', 904 'eventCategory': 'Article Click', 905 'eventAction': '' + sectionName + '', 906 'eventLabel': '' + articlPos + '', 907 'Page Type': '' + pgtype + '', 908 'Article Category': '' + cat + '', 909 'Date of Article': '' + date + '', 910 'Day of Article': '' + day + '', 911 'Hour of Article': '' + hour + '', 912 'Story ID': '' + newsId + '', 913 'Tags': '' + tags + '', 914 'Canonical URL': '' + window.location + '', 915 'Content Type': '' + type + '', 916 'Article subcategory': '' + cat + '', 917 'Article Name': '' + engHeadline + '', 918 }); 919 920} 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.