Help me with Implementing Lazy Loading using Google Publisher Tag

So I want to lazy load ads to improve my site performance. I tried but ads are not appearing. I must be doing some mistake. I am using this code given by Google. This is how I tried to do it:

Pasted below code in head and just replaced googletag.defineSlot('/6355419/Travel' with ad unit id and name of ad.

<script async src="https://securepubads.g.doubleclick.net/tag/js/gpt.js"></script> <script> window.googletag = window.googletag || {cmd: []}; googletag.cmd.push(function() { googletag.defineSlot('/6355419/Travel', [728, 90], 'div-1') .setTargeting('test', 'lazyload') .addService(googletag.pubads()); googletag.defineSlot('/6355419/Travel', [728, 90], 'div-2') .setTargeting('test', 'lazyload') .addService(googletag.pubads()); googletag.defineSlot('/6355419/Travel', [728, 90], 'div-3') .setTargeting('test', 'lazyload') .addService(googletag.pubads()); // Some examples of ways to enable lazy loading below. // Normally, only one of these methods should be used. // A) Enable with defaults. googletag.pubads().enableLazyLoad(); // B) Enable without lazy fetching. Additional calls override previous // ones. googletag.pubads().enableLazyLoad({fetchMarginPercent: -1}); // C) Enable lazy loading with... googletag.pubads().enableLazyLoad({ // Fetch slots within 5 viewports. fetchMarginPercent: 500, // Render slots within 2 viewports. renderMarginPercent: 200, // Double the above values on mobile, where viewports are smaller // and users tend to scroll faster. mobileScaling: 2.0 }); // Register event handlers to observe lazy loading behavior. googletag.pubads().addEventListener('slotRequested', function(event) { updateSlotStatus(event.slot.getSlotElementId(), 'fetched'); }); googletag.pubads().addEventListener('slotOnload', function(event) { updateSlotStatus(event.slot.getSlotElementId(), 'rendered'); }); googletag.enableServices(); }); function updateSlotStatus(slotId, state) { var elem = document.getElementById(slotId + '-' + state); elem.className = 'activated'; elem.innerText = 'Yes'; } </script>

Other than that added given CSS and in body below code

<div id="div-2" class="ad-slot" style="height: 90px; width: 728px;">
<script> googletag.cmd.push(function() { googletag.display('div-2'); }); </script> </div>.

As I told you I have made just one change by replacing defineslot with AD UNIT ID and Unit Name.
Kindly Guide Me. Would Really Help Me. THANKS!

What Is The Best Time For Publishing Social Media Posts?

  1. Best time for Facebook posts

Facebooks algorithm changes over the last few years have emphasized friends, family, and meaningful connections. Thus, the content that drives the most engagement is going to be viral. Lets look at the best time for Facebook marketing.

Best time to post on Facebook- between 11 a.m. and 4 p.m.
Best days to post on Facebook- Wednesday, Thursday, Friday, Saturday, and Sunday The worst time to post on Facebook- early morning hours, and also, in the evenings after 6 pm.
The worst day to post on Facebook- Tuesday.
2. Best time for Instagram posts

Most businesses want to achieve maximum engagement level on their Instagram account. This is because more recently, people have begun to add views, shares, and directly message their favorite brands. Hence, Instagram has emerged as a crucial channel to boost brand recognition and brand loyalty. The best time to post on Instagram is:

Best Days- Monday, Wednesday, Thursday
Best Time- Between 11 a.m. to 3 p.m.
Worst Day- Sunday

  1. Best time to post on Twitter

Given the huge number of users, Twitter is undoubtedly an excellent platform for creating brand awareness. Below is the best time to post on Twitter.

Best time- Monday through Friday from 8 a.m. to 4 p.m. to generate consistent engagement.
Best days- Tuesday and Wednesday.
The worst time to post- between 10 p.m and 4 a.m.
Least recommended days to post on Twitter-Saturday and Sunday.

What are the 4 Ways to Boost Brand Visibility Through Paid Ads?

  1. Set up the right campaign goals

While creating PPC campaigns to increase brand awareness you might want to go for one of the following goals- number of impressions, click-through rate (CTR), cost-per-click (CPC), or post engagement that will get your brand in front of the new audience.

  1. Find your target audience

Targeting your buyer persona on proper channels allows you to reach the relevant audience for your brand. You can select your target audience on Google Ads by refining your search based on the in-market audience, demographics, market research, site targeting, and remarketing.
Lets have a quick look at these PPC targeting strategies.

  1. Focus on the relevant keywords

Ads containing keywords matching a users search query are more likely to get you an enhanced quality score in the search engine pages. Make sure that the ad title includes your primary keyword to enhance its visibility. Also, dont forget to include negative keywords in your ad campaigns to reduce irrelevant clicks.

  1. Track your campaigns success

Analytics is crucial for every ad campaign whether its organic or paid search to review its performance and make decisions accordingly to improve the campaign efficiency. Its imperative to keep a track of all the metrics to monitor impressions, Click-Through-Rate (CTR), Conversions, and ROAS for every campaign that is created to build and boost recognition.

Tracking multiple sources of traffic

Hi,

This might be a simple question, but I have an affiliate site that I want to drive traffic to, and the traffic will be coming from various sources.

All I want to know is that I got the traffic count that is being contracted for from each source...

My first thought is to create a sub-domain for each traffic source and utilize a DB update query to increment the visitors on the index page for that sub-domain, and then Automatically redirect the visitor to the actual affiliate page.

This would accomplish 2 things -

  1. give me a count on each sub-domain to compare to the contract
  2. make the link easier without the affiliate code at the end of it.

I guess the basic question is whether there is an easier quicker way to do this other then creating a mysql table to keep track of the visitor count per sub-domain?

Suggestions are welcome.
Thanks
Douglas

What is the Best Marketing Platform For E-commerce Website?

I want to know expert opinion regarding best marketing platforms for e-commerce website. I am working as Digital Marketing Executive as Expertek Cyber Solutions Inc. I have been assigned to market two websites, one is of towels industry and the other is of Apparels industry and boths websites are of US regions. So it will be a great favor for me if any e-commerce marketer expert suggest any good valuable online marketing platform like Google Ads etc or some valueable backlinging websites to enhance SEO keywords Ranking.

Social Media is Very Interesting Media.

Social Media is very great Platform to Explor our Talent.The idea that social media are defined simply by their ability to bring people together has been seen as too broad, as this would suggest that fundamentally different technologies like the Facebook, Instagram and Tiktok are also Sosial Midea

How to Fix ‘Text Too Small to Read’ Error

Today when I log in to my Google Search Console account, i see some errors listed under the Mobile Usability section. One such common error is text too small to read.
Can anyone guide me how i resolved this error Or is there any guideline by google search console to solved this error. My website is TechDailyJournal

Digital marketing services- Ameya eMarketing

Ameya e-Marketing Digital Marketing Services in Hyderabad Are. Interactive and Include the Following. Seo services.Interactive campaigns. Analytics & reporting. Blog Marketing. Content development. Social media marketing. Web application development. Responsive design. Google+ marketing. Designed to reach Mobile, tablets & desktop devices.