Despite the rising influence of public opinion on government energy policy formulation and implementation, the roles of pro and/or anti-environmental attitudes among residents have not been empirically examined. To quantify time-varying environmental attitudes among local residents, we exploit geo-specific Google search-query data derived from Internet-based "big data" and verify through ordinary least squares regression outcomes regarding environmental behavior. For the purpose of drawing policy implications, we revisit decisions by state governments of the United States to adopt three well-known green electricity policies: renewable energy portfolio, net metering rules, and public benefit funds. As some states have not yet adopted some (or any) of these policies, unlike previous studies, we handle the issue by examining right-censored data and applying a duration-based econometric method called the accelerated failure time model. We found state residents' environmental attitudes to have statistically significant roles, after controlling for other traditional time-varying policy adoption factors. Interestingly, the extent to which anti-environmental attitudes affect a state's policy adoption differs across green energy policies, and knowing this can help a local government formulate better-tailored environmental policy. In particular, researchers can use our method of incorporating citizens' environmental attitudes to discuss relevant issues in the field of energy policy.