Cookie "pardot" has been rejected because it is already expired

I’ve added pardot tracking script as specified here Help And Training Community

<script type="text/javascript">
    piAId = '1123';
    piCId = '1234';
    piHostname = 'pi.pardot.com';
    (function() {
        function async_load(){
            var s = document.createElement('script'); s.type = 'text/javascript';
            s.src = ('https:' == document.location.protocol ? 'https://pi' : 'http://cdn') + '.pardot.com/pd.js';
            var c = document.getElementsByTagName('script')[0]; c.parentNode.insertBefore(s, c);
        }
        if(window.attachEvent) {
            window.attachEvent('onload', async_load);
        }
        else {
            window.addEventListener('load', async_load, false);
        }
    })();
</script> 

currently I’m getting error like this in console log
Cookie "pardot" has been rejected because it is already expired
Can someone please help with this?

Thank you