What I want to do is store the data fetched from google tag manager in dataLayer and store it in database at the end of every session.