PageSourceSearch

https://www.edigest.hk/wp-content/plugins/nmg-popular-post/js/nmg_popular_post_ga.js?ver=1.3.08

js edigest.hk collected 2026-10-01 11:34:18 UTC 1,899 bytes, 48 lines download raw bytes

1 var SidebarPosts_Ga_Popular = {new_Id:''};
2//console.log(SidebarPosts_Ga_Popular.num);
3var popular_post_ga = function (CurrentPost_Id,num,CatTitle,RelatedPostTiltle,RelatedPostId,PostUrl,Type){
4
5	// add ga4:
6	//add_themes_ga4_tracking('sidebar_popular_post_click',{'item_name':RelatedPostTiltle+'_第'+ num +'篇','item_type':Type,'item_id':CurrentPost_Id});
7
8	if(CurrentPost_Id != SidebarPosts_Ga_Popular.new_Id ){
9        SidebarPosts_Ga_Popular.new_Id = CurrentPost_Id ;
10    }
11           //return '';
12	if (typeof(_gaq) != 'undefined') {
13		_gaq.push(['_trackEvent','文章', CatTitle+lazyloadID+'_'+'SidebarPosts_ButtonClick_'+ CurrentPost_Id + '_第'+ num +'篇_'+Type,RelatedPostTiltle,RelatedPostId]);
14		
15		window.location.href = PostUrl; 
16		return;
17	}
18	if (typeof(__gaTracker) != 'undefined') {
19		__gaTracker('send','event','文章', CatTitle+lazyloadID+'_'+'SidebarPosts_ButtonClick_'+ CurrentPost_Id + '_第'+ num +'篇_'+Type,RelatedPostTiltle,RelatedPostId);
20		
21		window.location.href = PostUrl; 
22		return;
23	}
24	if(typeof(_gaq) == 'undefined' && typeof(__gaTracker) == 'undefined' ){
25		
26		window.location.href = PostUrl; 
27		return;
28	}
29	
30}
31
32var SidebarPosts_Popular = {new_Id:'',num:'1'};
33var lazyloadID = 0;      
34var SidebarPosts = function (id,currentPost_Id,cat_title,num,type){
35      // console.log(currentPost_Id);
36      // console.log(currentPost_Id,lazyloadID,window.SidebarPosts_Popular.new_Id  );
37           if(currentPost_Id != SidebarPosts_Popular.new_Id && typeof(SidebarPosts_Popular.new_Id) != "undefined"){
38           	SidebarPosts_Popular.new_Id = currentPost_Id ;
39           	 lazyloadID = ++lazyloadID  ;
40           }
41         // console.log(lazyloadID);
42       jQuery('#'+id).attr("data-action", function(){
43
44       	return ""+cat_title+"_"+lazyloadID+"_SidebarPosts_ButtonClick_"+currentPost_Id+"_第" + num + "篇_"+type;
45       })
46               
47     }
48            

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.