A common method of assessing a firm's macro-environment is via a PESTLE (Political, Economic, Social, Technological, Legal, Ecological) analysis. Within a PESTLE analysis, a firm would analyze national political issues, culture and climate, key macroeconomic conditions, health and indicators (such as economic growth, inflation, unemployment, etc.), social trends/attitudes, and the nature of technology's impact on its society and the business processes within the society. 
Marketing research is a systematic process of analyzing data that involves conducting research to support marketing activities and the statistical interpretation of data into information. This information is then used by managers to plan marketing activities, gauge the nature of a firm's marketing environment and to attain information from suppliers. A distinction should be made between marketing research and market research. Market research involves gathering information about a particular target market. As an example, a firm may conduct research in a target market, after selecting a suitable market segment. In contrast, marketing research relates to all research conducted within marketing. Market research is a subset of marketing research.
In 2007, marketing automation was developed as a response to the ever evolving marketing climate. Marketing automation is the process by which software is used to automate conventional marketing processes. Marketing automation helped companies segment customers, launch multichannel marketing campaigns, and provide personalized information for customers. However, the speed of its adaptability to consumer devices was not fast enough.
Marketing’s principal function is to promote and facilitate exchange. Through marketing, individuals and groups obtain what they need and want by exchanging products and services with other parties. Such a process can occur only when there are at least two parties, each of whom has something to offer. In addition, exchange cannot occur unless the parties are able to communicate about and to deliver what they offer. Marketing is not a coercive process: all parties must be free to accept or reject what others are offering. So defined, marketing is distinguished from other modes of obtaining desired goods, such as through self-production, begging, theft, or force.
Targeting, viewability, brand safety and invalid traffic: Targeting, viewability, brand safety and invalid traffic all are aspects used by marketers to help advocate digital advertising. Cookies are a form of digital advertising, which are tracking tools within desktop devices; causing difficulty, with shortcomings including deletion by web browsers, the inability to sort between multiple users of a device, inaccurate estimates for unique visitors, overstating reach, understanding frequency, problems with ad servers, which cannot distinguish between when cookies have been deleted and when consumers have not previously been exposed to an ad. Due to the inaccuracies influenced by cookies, demographics in the target market are low and vary (Whiteside, 2016). Another element, which is affected within digital marketing, is ‘viewabilty’ or whether the ad was actually seen by the consumer. Many ads are not seen by a consumer and may never reach the right demographic segment. Brand safety is another issue of whether or not the ad was produced in the context of being unethical or having offensive content. Recognizing fraud when an ad is exposed is another challenge marketers face. This relates to invalid traffic as premium sites are more effective at detecting fraudulent traffic, although non-premium sites are more so the problem (Whiteside, 2016).
This refers to how the product gets to the customer; the distribution channels and intermediaries such as wholesalers and retailers who enable customers to access products or services in a convenient manner. This third P has also sometimes been called Place or Placement, referring to the channel by which a product or service is sold (e.g. online vs. retail), which geographic region or industry, to which segment (young adults, families, business people), etc. also referring to how the environment in which the product is sold in can affect sales.  5 Digital Marketing Skills to Master for 2020 & Beyond